Sha256: c2bdf444b0d08352a96eb92da89e95a40706f7ae0f10e192d8b6cc60b4a38d7a

Contents?: true

Size: 1007 Bytes

Versions: 7

Compression:

Stored size: 1007 Bytes

Contents

module MasterView
  class SampleTemplates
    Samples = {
      :general => {  # category


          #key => [desc, template]
          :basic => ['basic template', <<-END
<html mv:generate="layouts/store.rhtml">
  <body>
    <h1>Store</h1>
    <div mv:generate="store/list.html">
      List here
    </div>
  </body>
</html>
END
          ],

          :text_field => ['text_field form', <<-END
<html mv:generate="layouts/store.rhtml">
  <body>
    <h1>Store</h1>
    <div mv:generate="store/new.html">
      Name: <input type="textfield" size="20" mv:text_field="product, name"/>
    </div>
  </body>
</html>
END
          ]



      },



      :advanced =>  { # category
         

          :text_field => ['text_field form', <<-END
<html mv:generate="layouts/store.rhtml">
  <body>
    <h1>Store</h1>
    <div mv:generate="store/new.html">
      Name: <input type="textfield" size="20" mv:text_field="product, name"/>
    </div>
  </body>
</html>
END
          ]




      }
      


    }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
masterview-0.2.4 lib/masterview/extras/sample_templates.rb
masterview-0.2.5 lib/masterview/extras/sample_templates.rb
masterview-0.3.0 lib/masterview/extras/sample_templates.rb
masterview-0.3.1 lib/masterview/extras/sample_templates.rb
masterview-0.3.2 lib/masterview/extras/sample_templates.rb
masterview-0.3.3 lib/masterview/extras/sample_templates.rb
masterview-0.3.4 lib/masterview/extras/sample_templates.rb