I have a framework that requires template data in unprocessed ejs format and with the .ejs suffix. So I would like to disable the EjsTemplate engine. Is there a way to do this short of creating something like
If this can in fact safely be done, you may consider this a pull request :)
To answer my own question: I solved this by re-initializing the '.ejs' engine with a dummy template that does nothing to the data. In config/initializers/sprockets.rb:
class NoEngine < Tilt::Template
def prepare; end
def evaluate(scope, locals, &block)
Edit: I also found it necessary to add this line:
This will now serve up the raw ejs from within the asset pipeline.
As an aside: I think these predefined engines should not be hard coded the way they are without any ability to configure/disable them.