ruby-ejs
ruby-ejs copied to clipboard
EJS (Embedded JavaScript) template compiler for Ruby
The following changes allow the following: Giving this function ``` javascript formTag = function (template) { return '\n'+template()+'\n'; } ``` The following ejs template: ``` javascript ``` generates: ``` html...
Hello @sstephenson , I send a pull-request to use Travis CI. `ejs` is used a development dependency of `sprockets` that is used as a part of Rails. So, it is...
Changes escape pattern like original lib: https://github.com/tj/ejs
I've added a small regex to remove indentation whitespaces between html tags. I'm open for any suggestions
This library has opposite conventions from what other libraries expect, such as the official [NPM version](http://ejs.co/): https://www.npmjs.com/package/ejs . This is also the convention used in Ruby's native `erb` templates. Per...
I was trying to determine the licenses for my dependencies. I found that the RubyGems API will return the license, but only if it is specified in your gemspec file.
The implementation was prepending an empty string blindly to the front of the fragment provided to the tags which caused the turnary to always be evaluated truthily. Example: ``` javascript...
I have a problem when I try to use something like `` in my .jst.ejs template, it evaluate as `"null" || "some string"` which always return `"null"` string So it's...
Hello, unfortunately I catch the error with Rails 4.1 and els 1.1.1 while blotting my application: (ejs 1.0.0 works fine) ``` /Users/alex/.rvm/gems/ruby-2.1.1/gems/jquery-rails-2.1.4/lib/jquery/rails/railtie.rb:9:in `block in ': undefined method `join' for nil:NilClass...