Erlang port

26 views
Skip to first unread message

raghu

unread,
Aug 2, 2009, 2:32:42 PM8/2/09
to JSON Template
Dear Andy,

Have a quick design question:
- Why did you choose to differentiate {.section} and {.repeated
section}? To my understanding, both offer the same functionality (of
course .section doesn't repeat). You could have chosen to repeat, when
the json data for the section is in an array... Sure, I am missing
something! Could you please throw some light on this.

I would like to port jsontemplate to erlang. Is their any test suite
that I can run through?

Thanks,
Raghu

Andy Chu

unread,
Aug 5, 2009, 1:24:32 AM8/5/09
to json-t...@googlegroups.com
On Sun, Aug 2, 2009 at 11:32 AM, raghu<rag...@gmail.com> wrote:
>
> Dear Andy,
>
> Have a quick design question:
> - Why did you choose to differentiate {.section} and {.repeated
> section}? To my understanding, both offer the same functionality (of
> course .section doesn't repeat). You could have chosen to repeat, when
> the json data for the section is in an array... Sure, I am missing
> something! Could you please throw some light on this.

Right, it's not strictly necessary:

http://code.google.com/p/json-template/issues/detail?id=13

As mentioned in the bug, this behavior can be "upgraded" without
breaking compatibility.


> I would like to port jsontemplate to erlang. Is their any test suite
> that I can run through?

See:

http://groups.google.com/group/json-template/browse_thread/thread/a711cd22b418f10f#

The test framework is my own and doesn't have very nice output or
documentation. But people have managed to hack it (Java, PHP). If
you have problems with it let me know -- I'm actively working on it.

thanks,
Andy

Reply all
Reply to author
Forward
0 new messages