Showing posts with label templates. Show all posts
Showing posts with label templates. Show all posts

Sunday, June 10, 2012

Rendering JSON objects using a Django template after an Ajax call


I've been trying to understand what's the optimal way to do Ajax in Django . By reading stuff here and there I gathered that the common process is:

Wednesday, May 16, 2012

Benchmarking HAML vs JADE vs HTML in PHP?


I'm interested in the performance of templating languages in PHP. I've been watching node.js tutorials and am really impressed by the use of JADE (http://jade-lang.com).

Tuesday, May 15, 2012

Symfony2 Twig extension


I have some problem to implement twig extension. I need to create my own filter (a substr filter). So I have thought to use twig extension.

Sunday, May 13, 2012

Can Mustache Templates do template extension?


I'm new to Mustache.



Many templating languages (e.g., Django / Jinja ) will let you extend a "parent" template like so...

Wednesday, April 25, 2012

JSP tricks to make templating easier?


At work I've been tasked with turning a bunch of HTML files into a simple JSP project. It's really all static, no serverside logic to program. I should mention I'm completely new to Java. JSP files seem to make it easy to work with common includes and variables, much like PHP, but I'd like to know a simple way to get something like template inheritance (Django style) or at least be able to have a base.jsp file containing the header and the footer, so I can insert content later.

Thursday, April 12, 2012

PHP vs template engine


I'm currently having a discussion about the choice between php as a template engine versus a template engine on top of php.