Ability to register custom template engines... #111
Loading…
Reference in New Issue
No description provided.
Delete Branch "register_custom_template_hook"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
...via Jasmine::Headless.register_engine hook
In response to issue #102, I added the ability to register custom template engines not currently supported by default in JHW. The hook may be registered by placing ruby code in #{spec_dir}/helpers/spec_helper.rb. (Perhaps the location of this file can be configurable.)
For example, I am using the following to compile Handlebars templates via the
handlebars_assets
gem for JHW in my current project:Nice! Thanks for tackling this, I appreciate it. :) I'm going to mull over the implementation and give it a spin in a few days, then figure out if I want to take it in as-is or suggest changes. Other projects are taking my time right now.
Cool. Perhaps I can help if you're interested in trying another approach.
any updates on this?
I've mulled it over and I'm fine with this. Can you also add some info to the docs on the
gh-pages
branch on how this works?