ruby-ejs icon indicating copy to clipboard operation
ruby-ejs copied to clipboard

EJS (Embedded JavaScript) template compiler for Ruby

Results 14 ruby-ejs issues
Sort by recently updated
recently updated
newest added

EJS.escape_function is now a formatting string. Example: ``` ruby EJS.escape_function = '_.escape(%s)' ```

When you use escape tags with a null value it will be turned into the string "null", which can be incredibly inconvenient. For example ``` value: "" ``` becomes ```...

I feel like an idiot for not being able to figure this out, but here goes. In rails, my assets/javascripts/foo.jst.ejs file is served up as localhost:3000/assets/foo and assets/foo.js, but localhost:3000/assets/foo.ejs...

This is a mirror of a [bug](https://github.com/sstephenson/sprockets/issues/363) on Sprockets as it affects either. The problem is this: `EjsTemplate` [passes data](https://github.com/sstephenson/sprockets/blob/master/lib/sprockets/ejs_template.rb#L34) to `EJS.compile` which uses `gsub!` in its implementation. When used...