json-template


Minimal but powerful templating language implemented in multiple languages

See Introducing JSON Template for an overview, and the Wiki for more docs.

To use it, download the latest zip file and simply copy the single Python file or the single JavaScript file into your project. Neither has any external dependencies.

News

3/31/09 - The Wiki has been updated with MoreDocumentation, and a few other pages.

4/4/09 - On Design Minimalism, or why JSON Template Doesn't Need an Include Statement -- An article with a detailed exposition of both specific examples and general design principles. Two live examples.

4/5/09 - Thanks to William Shallum, we now have a first cut of a Java implementation! Please try it out and send feedback to the mailing list.

4/26/09 - Thanks to Miguel Ibero, we now have a first cut of a PHP implementation! Please try it out and send feedback to the mailing list.

7/12/09 - Preview of JSON Pattern. Mailing list has an introduction to this project.

9/5/09 - pyb is a minimal version of Protocol Buffers. It could be hooked up to JSON Template, since Protocol Buffers and JSON have basically the same data model.

9/27/09 - Switched our repository to Mercurial. DevelopingJsonTemplate has been updated.

11/14/09 -- JSON Template syntax is used in Go's template language. See the end of Effective Go. Also see my group post.

12/4/09 -- JSON Template is available as a CommonJS module and Narwhal package: http://github.com/andychu/json-template

11/15/11 -- Found through Google: Scheme version of JSON Template! http://matthias.benkard.de/software/json-template-r6rs/manual.html

8/02/12 -- Experimental Python 3 port in the downloads section.

Project Information

Labels:
JSON JavaScript Python Template Web Java PHP Go golang