aiwilliams / guard-handlebars Goto Github PK
View Code? Open in Web Editor NEWAllows for compiling .handlebars files to JavaScript files that compile templates and register partials.
License: MIT License
Allows for compiling .handlebars files to JavaScript files that compile templates and register partials.
License: MIT License
This guard extension attempts to notify other watchers when files change.
However it assumes that the other watchers implement the run_on_change method
When they don't you get the following error:
NoMethodError: undefined method `run_on_change' for #<Guard::Jammit:0x000001048c9ec0>
NoMethodError: undefined method `run_on_change' for #<Guard::Jammit:0x000001048c9ec0>
The error crashes the watcher process for handlebars templates.
This manual notifying is not necessary and should be removed also run_on_change should be renamed to run_on_modification
The API was changed in of Guard 1.1.
https://github.com/guard/guard/wiki/Upgrade-guide-for-existing-guards-to-Guard-v1.1
First, thanks for pulling this together.
I tried adding this to my Gemfile and bundle install could not find it. I don't think it has been pushed to rubygems yet.
If it is pushed elsewhere, it might be good to keep a copy in rubygems as well.
I forked the project and pointed my gemfile at the repository as a fix and it works fine except it requires "bundle exec" in order to see guard/handlebars (unlike guard/haml and guard/coffeescript). I took a look and couldn't find the difference but thought I would report it here for now in case this gets solved. I'll report back if I happen upon it at a later date.
Thanks again for your work on this!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.