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

Version Path
sproutcore-1.11.0 lib/buildtasks/render.rake
sproutcore-1.11.0.rc3 lib/buildtasks/render.rake
sproutcore-1.11.0.rc2 lib/buildtasks/render.rake
sproutcore-1.11.0.rc1 lib/buildtasks/render.rake
sproutcore-1.10.3.1 lib/buildtasks/render.rake
sproutcore-1.10.2 lib/buildtasks/render.rake
sproutcore-1.10.1 lib/buildtasks/render.rake
sproutcore-1.10.0 lib/buildtasks/render.rake
sproutcore-1.10.0.rc.3 lib/buildtasks/render.rake
sproutcore-1.10.0.rc.2 lib/buildtasks/render.rake
sproutcore-1.10.0.rc.1 lib/buildtasks/render.rake
sproutcore-1.9.2 lib/buildtasks/render.rake
sproutcore-1.9.1 lib/buildtasks/render.rake
sproutcore-1.9.0 lib/buildtasks/render.rake
sproutcore-1.8.2.1 lib/buildtasks/render.rake
sproutcore-1.8.1 lib/buildtasks/render.rake
sproutcore-1.8.0 lib/buildtasks/render.rake
sproutcore-1.7.1.beta-java lib/buildtasks/render.rake
sproutcore-1.7.1.beta lib/buildtasks/render.rake
sproutcore-1.6.0.1-java lib/buildtasks/render.rake