Sha256: cc9ada1f848ae3d185eec5c9be90db17f530b773c82d8cb8f6cf744c1e093634
Contents?: true
Size: 470 Bytes
Versions: 16
Compression:
Stored size: 470 Bytes
Contents
class <%= class_name %> < Noodall::Node # Define which Node Templates can be used as children of Nodes using this template sub_templates <%= class_name %> <%- if options.root? -%> root_template! <%- end -%> # Define the number of each slot type this Node Template allows. Slots are defined in 'config/initializers/noodall.rb' # small_slots 4 <% for attribute in attributes -%> key :<%= attribute.name %>, <%= attribute.type.to_s.classify %> <% end -%> end
Version data entries
16 entries across 16 versions & 1 rubygems