Skip to content

Commit

Permalink
Register the Slim template as a SafeTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
skade committed Feb 1, 2013
1 parent 9277f22 commit a2fe0ea
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
Padrino::Rendering.engine_configurations[:slim] =
{:generator => Temple::Generators::RailsOutputBuffer,
:buffer => "@_out_buf"}

class Slim::Template
include Padrino::Rendering::SafeTemplate
end
end
rescue LoadError
end

0 comments on commit a2fe0ea

Please sign in to comment.