lib/hobo/dryml.rb in hobo-0.9.0 vs lib/hobo/dryml.rb in hobo-0.9.100
- old
+ new
@@ -22,13 +22,13 @@
APPLICATION_TAGLIB = { :src => "taglibs/application" }
CORE_TAGLIB = { :src => "core", :plugin => "hobo" }
DEFAULT_IMPORTS = (if defined?(ApplicationHelper)
- [Hobo::HoboHelper, ApplicationHelper]
+ [Hobo::HoboHelper, Hobo::Translations, ApplicationHelper]
else
- [Hobo::HoboHelper]
+ [Hobo::HoboHelper, Hobo::Translations]
end)
@renderer_classes = {}
@tag_page_renderer_classes = {}
@@ -36,9 +36,14 @@
attr_accessor :last_if
def enable
ActionView::Template.register_template_handler("dryml", Hobo::Dryml::TemplateHandler)
+ if ActionView::Template.respond_to? :exempt_from_layout
+ ActionView::Template.exempt_from_layout('dryml')
+ elsif
+ ActionView::Base.exempt_from_layout('dryml')
+ end
DrymlGenerator.enable
end
def precompile_taglibs