___________________/\___________________
/ \
| |
PencilMustache
Do you only need to replace some tokens? This is all you need (Ruby 1.9+). No need for 3000 lines of Ruby, like in Mustache proper.
Usage
Quick example (similar to Mustache):
>> require 'pencil_mustache' # Assuming it's in your $LOAD_PATH
=> true
>> PencilMustache.render("Hello {{planet}}", :planet => "World!")
=> "Hello World!"
Installing
It's so small (15 lines), you might as well copy it into your app. Or just use the same gsub
feature when you need it.
But if you insist, it's a gem too:
gem install pencil_mustache
Contributing
Run the specs using:
ruby spec/pencil_mustache_spec.rb
Build the gem using:
gem build pencil_mustache.gemspec
License
MIT. See LICENSE for a copy.