Sha256: faa05b7a10bb8352e29df4bea76a135f6c8e6309d0924f5dcc7b4ffc0aa4286b
Contents?: true
Size: 487 Bytes
Versions: 6
Compression:
Stored size: 487 Bytes
Contents
module RailsAssist module TemplateLanguage class Erb < Base def insert_ruby_statement statement, options = {} "<%= #{statement} %>" end def insert_ruby_block statement, options = {}, &block %Q{"<%= #{statement} %>" #{yield} <% end %> } # insert_content options end def insert_tag tag, attributes, options= {}, &block %Q{"<#{tag} #{attributes}>" #{yield} <#{tag}/> } end end end end
Version data entries
6 entries across 6 versions & 1 rubygems