1
0
Fork 0
template_engine_comparison/templates/tagz/big.rb

33 lines
707 B
Ruby

module TagzTemplates
class Big < Base
def render
html_{
head_{
title_ 'Customers List'
}
body_{
@customers.each{ |customer|
dl_{
dt_ 'Name:'
dd_ customer['name']
dt_ 'Age:'
dd_ customer['age']
dt_ 'Address:'
dd_{
[
customer['zip'],
customer['country'],
customer['city'],
customer['address']
].join("\n")
}
dt_ 'Employer:'
dd_ customer['employer']
}
}
}
}
end
end
end