Module: Cuca::Generator
- Defined in:
- lib/cuca/generator/markaby.rb,
lib/cuca/generator/view.rb
Overview
Generator
A generator is a mixin to Cuca::Widget. It should provide functions that generate content. Visible within a generator function should be all instance variables, all instance methods and an easy accessor to widgets. For example the view and markaby generators that come with cuca you can call a widget like:
Link(a,b,c..) { block}
and it will initialize the LinkWidget