Sha256: ebe546a912a42a55e0fb11756dd6963220e802b0a859892fa0f87322b3bcf301
Contents?: true
Size: 481 Bytes
Versions: 2
Compression:
Stored size: 481 Bytes
Contents
require 'angular-rails-templates/compact_javascript_escape' require 'haml' module AngularRails4Templates class HamlProcessor < Processor include CompactJavaScriptEscape def render_html(input) template = input[:data] haml_engine = Haml::Engine.new(template) output = haml_engine.render escape_javascript output rescue Haml::SyntaxError => ex raise Haml::SyntaxError.new("#{input[:filename]} #{ex.message}", ex.line) end end end
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
angular-rails4-templates-0.3.0 | lib/angular-rails-templates/haml_processor.rb |
angular-rails4-templates-0.3.0 | lib/angular-rails4-templates/haml_processor.rb |