This may help:
# config/initializers/dryml_taglibs.rb
#
# # Generate custom auto taglibs in addition to rapid:
# my_generators_path =
Pathname.new("#{::Rails.root}/app/views/dryml_generators/")
# h = Hobo::Engine.config.hobo
# Dryml::DrymlGenerator.enable([h.rapid_generators_path, my_generators_path],
h.auto_taglibs_path)
#
# # Prevent auto taglibs of api subsite from being generated:
# module Dryml
# class DrymlGenerator
# def run
# Hobo::Model.all_models.*.view_hints # Ensure all view hints loaded
before running
# subsites = [nil, *Hobo.subsites] - ["api"]
# subsites.each { |s| run_for_subsite(s) }
# end
# end
# end
#
# # Completely disable generating auto taglibs:
# Dryml::DrymlGenerator.enable([])
Dryml.precompile_taglibs if File.basename($0) != "rake" && Rails.env.production?
-----
Tomoaki Hayasaka <[email protected]>
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/groups/opt_out.