Sha256: abb4bf42e3df6c18116fd7e987938fea7da59a5a679954d7416d69df991309b4
Contents?: true
Size: 527 Bytes
Versions: 3
Compression:
Stored size: 527 Bytes
Contents
require 'spec_helper' require 'wlang/html' module WLang describe Html, ">{...}" do def render(tpl, scope = {}) Html.render(tpl, scope, "") end it 'renders a Template object by default' do who = "World" partial = Html.compile("${who}") render("Hello >{partial}", binding).should eq("Hello World") end it 'compiles a String to a Template' do who = "World" partial = "${who}" render("Hello >{partial}", binding).should eq("Hello World") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wlang-2.0.1 | spec/integration/html/test_greater.rb |
wlang-2.0.0 | spec/integration/html/test_greater.rb |
wlang-2.0.0.beta | spec/integration/html/test_greater.rb |