Done. New proposal for dot notation:
https://github.com/SquareBracketAssociates/EnterprisePharo/compare/master...offray:patch-1
My two pesos.
Cheers,
Offray
On 30/05/17 09:33, Offray Vladimir Luna Cárdenas wrote:
>
> On 30/05/17 02:25, Norbert Hartl wrote:
>> the credits for the enterprise ch
On 30/05/17 02:25, Norbert Hartl wrote:
> the credits for the enterprise chapter go to Stef. He does the annoying task
> of collecting information and make them publishable.
> The book is supposed to be a community effort. So if you have something to
> add I think pull requests are highly welc
Offray,
> Am 30.05.2017 um 02:45 schrieb Offray Vladimir Luna Cárdenas
> :
>
> Norbert,
>
> Dot notation solves the issue and [1] works as expected.
>
> =[1]
>
> '{{#twitter}}
>
>
> Twitter
>
> https://twitter.com/{{.}}";>
>{{.}}
>
> {{/twitter}}' asMus
Norbert,
Dot notation solves the issue and [1] works as expected.
=[1]
'{{#twitter}}
Twitter
https://twitter.com/{{.}}";>
{{.}}
{{/twitter}}' asMustacheTemplate value: { #twitter -> '@offrayLC' }
asDictionary
===
Thanks for the work on Mu
Offray,
I think I didn't get what you want at first. When using a section in mustache
{{#twitter}} then the object value of the key twitter becomes the current
context. Every property is resolved relative to this current context. If you
want to use the current context itself as value you can us
Yes I can share the data. Please load Brea project from [1] and do:
=
| testUser |
testUser := BreaMember new createTestUser.
testUser html
=
[1] http://smalltalkhub.com/#!/~Offray/Brea
You will see that the twitter portion of the row is showed, but without
any actual data in
To clarify. If the object you inject has a value which either does not contain
the key twitter or it does container the key twitter but its value is nil then
the section won't be shown.
'{{#twitter}}
Twitter
https://twitter.com/{{t
Can you show some data you are injecting? It should work as you expect it.
Norbert
> Am 29.05.2017 um 15:26 schrieb Offray Vladimir Luna Cárdenas
> :
>
> Hi,
>
> I'm using Mustache for a project to build a dynamic distributed web site
> generator for public & open data, backed by Fossil and us
Hi,
I'm using Mustache for a project to build a dynamic distributed web site
generator for public & open data, backed by Fossil and using Material
Design Lite. I have a template like this:
{{#twitter}}
Twitter
https://