ExampleRythm


Wolfgang Fahl

template1

@args String name
Ok @name - here we go

defs

@include(wiki.ExampleRythm.java)
@{
  Topic topic=new Topic();
  topic.name="testTopic";
}
@def showTopic(Topic topic)  {
@if (topic) {
@(topic.name)
}
}

java

@import com.bitplan.topic.TopicStatic.Topic

showtopic

@include(wiki.ExampleRythm.defs)
testTopic=@showTopic(topic)

template1[edit]

@args String name
Ok @name - here we go

defs[edit]

@include(wiki.ExampleRythm.java)
@{
  Topic topic=new Topic();
  topic.name="testTopic";
}
@def showTopic(Topic topic)  {
@if (topic) {
@(topic.name)
}
}

java[edit]

@import com.bitplan.topic.TopicStatic.Topic

showtopic[edit]

@include(wiki.ExampleRythm.defs)
testTopic=@showTopic(topic)
🖨 🚪