nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
examples: annotate examples
[nit.git]
/
lib
/
template
/
examples
/
tmpl_composer.nit
diff --git
a/lib/template/examples/tmpl_composer.nit
b/lib/template/examples/tmpl_composer.nit
index
6160b1a
..
c95fc62
100644
(file)
--- a/
lib/template/examples/tmpl_composer.nit
+++ b/
lib/template/examples/tmpl_composer.nit
@@
-12,6
+12,8
@@
# See the License for the specific language governing permissions and
# limitations under the License.
# See the License for the specific language governing permissions and
# limitations under the License.
+module tmpl_composer is example
+
import template
### Here, definition of the specific templates
import template
### Here, definition of the specific templates
@@
-55,8
+57,6
@@
class TmplComposer
# Short name
var name: String
# Short name
var name: String
- init(name: String) do self.name = name
-
redef fun rendering do add "- {name}\n"
end
redef fun rendering do add "- {name}\n"
end
@@
-69,13
+69,6
@@
class TmplComposerDetail
var birth: Int
var death: Int
var birth: Int
var death: Int
- init(firstname, lastname: String, birth, death: Int) do
- self.firstname = firstname
- self.lastname = lastname
- self.birth = birth
- self.death = death
- end
-
redef fun rendering do add """
COMPOSER: {{{firstname}}} {{{lastname}}}
redef fun rendering do add """
COMPOSER: {{{firstname}}} {{{lastname}}}