Sha256: 5f2b60507d62e7b33e91847a58c4e828b5e783d93f7167ac17bdd3df7c8d3034
Contents?: true
Size: 609 Bytes
Versions: 33
Compression:
Stored size: 609 Bytes
Contents
When /^I render "([^"]*)"$/ do |file| file_path = aruba_path(file) file_data = File.read(file_path) @locals ||= {} @taglibs ||= [] @rendered_dom = Dryml.render(file_data, @locals, file_path, @taglibs) Dryml::Template.clear_build_cache end When /^I include the taglib "([^"]*)"$/ do |file| file_path = aruba_path(file+".dryml") template_dir = File.dirname(file_path) @taglibs ||= [] @taglibs << { :src => file, :absolute_template_path => template_dir } end Given /^the local variable "([^"]*)" has the value "([^"]*)"$/ do |var, value| @locals ||= {} @locals[var.to_sym] = value end
Version data entries
33 entries across 33 versions & 1 rubygems