lib/doozer/view_helpers.rb in doozer-0.2.6 vs lib/doozer/view_helpers.rb in doozer-0.3.0
- old
+ new
@@ -124,9 +124,16 @@
#
def static_url(path)
Doozer::Configs.static_url(path)
end
+ # Render the page title
+ #
+ # retuns page title if it was set in a controller
+ def title
+ return @view[:title] ? @view[:title] : ""
+ end
+
# Creates metatags
#
# retuns a differnt metatag for each key/value added to @view[:meta] hash. See Doozer::Controller#meta for adding examples.
def metatags
#loop all metatags here...
\ No newline at end of file