template :: TmplComposers :: add_composer
Add a composer in both liststemplate :: TmplComposers :: composer_details
Detailled list of composerstemplate :: TmplComposers :: composer_details=
Detailled list of composerstemplate :: TmplComposers :: composers=
Short list of composerstemplate :: TmplComposers :: defaultinit
template $ TmplComposers :: SELF
Type of this instance, automatically specialized in every classtemplate $ TmplComposers :: rendering
Service used to render the content of the template.template :: TmplComposers :: add_composer
Add a composer in both listscore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
template :: TmplComposers :: composer_details
Detailled list of composerstemplate :: TmplComposers :: composer_details=
Detailled list of composerstemplate :: TmplComposers :: composers=
Short list of composerscore :: Writable :: defaultinit
template :: Template :: defaultinit
template :: TmplComposers :: defaultinit
core :: Object :: defaultinit
template :: Template :: is_frozen=
Is the template allowing more modification (add
)
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).core :: Writable :: write_to_bytes
Likewrite_to
but return a new Bytes (may be quite large)
core :: Writable :: write_to_file
Likewrite_to
but take care of creating the file
core :: Writable :: write_to_string
Likewrite_to
but return a new String (may be quite large).
# The root template for composers
class TmplComposers
super Template
# Short list of composers
var composers = new Array[TmplComposer]
# Detailled list of composers
var composer_details = new Array[TmplComposerDetail]
# Add a composer in both lists
fun add_composer(firstname, lastname: String, birth, death: Int)
do
composers.add(new TmplComposer(lastname))
composer_details.add(new TmplComposerDetail(firstname, lastname, birth, death))
end
redef fun rendering do
add """
COMPOSERS
=========
"""
add_all composers
add """
DETAILS
=======
"""
add_all composer_details
end
end
lib/template/examples/tmpl_composer.nit:21,1--51,3