Created
January 3, 2012 23:36
-
-
Save wojtekmach/1557585 to your computer and use it in GitHub Desktop.
Slim + handlebars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Tilt | |
class HandlebarsSlimTemplate < ::Slim::Template; end | |
register HandlebarsSlimTemplate, :handlebars_slim | |
end | |
class Slim::EmbeddedEngine | |
register :handlebars, TagEngine, tag: :script, attributes: { type: "text/x-handlebars" } | |
register :handlebars_slim, TagEngine, tag: :script, attributes: { type: "text/x-handlebars" }, engine: StaticTiltEngine | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@wojtekmach Could you provide a sample, template example? How can I give an id to embedded code