Hi Norbert

I'm improving the doc. I added some text on section and others..
And on list with collection I have the following behavior and I do not understand why on string.

| templateString context |
templateString := 'Shown.
{{#number}}
  Shown too!
{{/number}}'.
context := { 'number' -> #(1 2 3) } asDictionary.
(MustacheTemplate on: templateString) value: context  'Shown.

  Shown too!

  Shown too!

  Shown too!
'



| templateString context |
templateString := 'Shown.
{{#number}}
  Shown too!
{{/number}}'.
context := { 'number' -> '1 2 3' } asDictionary.
(MustacheTemplate on: templateString) value: context
 'Shown.

  Shown too!

  Shown too!

  Shown too!

  Shown too!

  Shown too!
'




On 11/7/14 10:53, Norbert Hartl wrote:

Am 11.07.2014 um 10:43 schrieb stepharo <[email protected] <mailto:[email protected]>>:

Hi guys

I would like to experiment with template for a small web project I have (my web page) and
I would like to try mustache. Is there any tutorial? doc?
I know that "jose maria aguerra" wrote a tutorial but I cannot find it anymore.

http://norbert.hartl.name/blog/2013/10/03/mustache-templates-for-smalltalk/

Norbert


Reply via email to