Sha256: 07bbf793e2d0fe5a7b7be9a1117833ccf011975305d45f028f8008435bcb8e1d
Contents?: true
Size: 489 Bytes
Versions: 3
Compression:
Stored size: 489 Bytes
Contents
require 'aws-sdk' require 'mustache' module Alephant class Renderer attr_reader :id def initialize(id) @id = id end def render(data) Mustache.render(template(@id), data) end private def template(id) <<-eos {{#results}} <ul> <li>Con: {{con}}</li> <li>Lab: {{lab}}</li> <li>Lib: {{lib}}</li> </ul> {{/results}} <p>Sequence number: {{seq}}</p> eos end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alephant-0.0.3-java | lib/alephant/models/renderer.rb |
alephant-0.0.2-java | lib/models/renderer.rb |
alephant-0.0.1-java | lib/models/renderer.rb |