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