Sha256: 0ea4be087a44203525263cb6c73c11f8cf866b2a19017f8a467bd65db4f60b4e
Contents?: true
Size: 766 Bytes
Versions: 47
Compression:
Stored size: 766 Bytes
Contents
# =========================================================================== # SC::Target Buildtasks # copyright 2011, Strobe Inc. and Apple Inc. all rights reserved # =========================================================================== # Tasks invoked to actually render a single HTML file. Works much like a # build task but also expects a CONTEXT variable that contains the html # context. namespace :render do desc "renders erubis including .rhtml and .html.erb files" task :erubis do |task, env| env[:context].compile SC::RenderEngine::Erubis.new(env[:context]), env[:src_path] end desc "renders haml files" task :haml do |task, env| env[:context].compile SC::RenderEngine::Haml.new(env[:context]), env[:src_path] end end
Version data entries
47 entries across 47 versions & 1 rubygems