hobo:generate_taglibs with Hobo::Dryml::Taglib.get fails
Reported by Ineu | December 22nd, 2009 @ 09:18 AM
Hello.
When Hobo::Dryml::Taglib.get :src => "taglibs/application"
specified in config/initializers/hobo.rb and directory auto/rapid
does not exist, rake hobo:generate_taglibs fails with error:
ineu@ineu tt2 % rake hobo:generate_taglibs
(in /home/ineu/work/tt2) "Processing environment.rb: Pre
Initialisation Phase (using rails 2.3.5)" "Processing
environment.rb: Main Initialisation Phase" rake aborted!
No such taglib: /home/ineu/work/tt2/app/views {:type=>:include,
:src=>"taglibs/auto/rapid/cards",
:template_dir=>"app/views/taglibs"}
/home/ineu/work/tt2/app/views/taglibs/auto/rapid/cards.dryml
but creating this directory with content is just what I want
this task to do!
With Hobo::Dryml::Taglib.get I want to speed up first response in
the production mode. But when this line is specified, project
cannot be deployed because of failing generate_taglibs task.
Comments and changes to this ticket
-
Matt Jones December 23rd, 2009 @ 12:05 AM
- Milestone set to Beyond Hobo 1.0
- Tag set to defect, dryml
- State changed from new to hold
The quicker way to handle what you're trying to do here is
Hobo::Dryml.precompile_taglibs
- I've got this in an initializer with this code:Hobo::Dryml.precompile_taglibs if File.basename($0) != "rake" && Rails.env.production?
This skips the compile step if Rake is running (since they won't be used anyway) or if not in production (since dev mode will reload them on every request as needed anyway).
Tagging 'hold', as we may want to come back to this later.
-
Bryan Larsen December 23rd, 2009 @ 12:05 AM
- State changed from hold to invalid
- Tag cleared.
- Milestone cleared.
The recommended line for initializers/hobo.rb is:
Hobo::Dryml.precompile_taglibs if File.basename($0) != "rake" && Rails.env.production?
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »