Sha256: f0c5c92c5018900ce03e859257b40d9f4f0dca23fb86a12e1afc63631161b7de
Contents?: true
Size: 775 Bytes
Versions: 18
Compression:
Stored size: 775 Bytes
Contents
# =========================================================================== # SC::Target Buildtasks # copyright 2008, Sprout Systems, 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
18 entries across 18 versions & 1 rubygems