template-engine

DOM Insertion: Are some tag types faster when inserting into DOM?

Hi, I have a web page that used client side templating to update part of the page based on json obtained via an ajax call. At the moment I'm using an unordered list where inside each Li I have markup to display information about a product. I'm interested to know, are some tags faster when inserting into the DOM than others? That is to...

Reusing a template page in Spring MVC

What is the best and easiest technology from the followings? Tiles, velocity or freemaker? Thank you. ...

Using ZPT in Google App Engine

Has anyone tried using ZPT in Google App Engine? If yes, please let me know how. Thanks in advance. EDIT: An example at http://gae-zpt.appspot.com/ by DisplacedAussie http://stackoverflow.com/users/2962/displacedaussie It can be downloaded from http://github.com/displacedaussie/gae-zpt I can now happily run at: http://blogthere.apps...

Desiging a template-based CMS Question

I need to develop a template-based content management system. I don't care about what operating system will be used to run the CMS -- as my server is dedicated. It can be Windows, Linux, whatever. But, I need a recommendation for a platform/framework for this purpose. The CMS should be fast, and should support friendly urls. Here's an e...

Offline HTML templating

I'm designing a simple website with no dynamic content that I want to be light and portable — no PHP or other server-side scripting needed, or wanted. I'm running into a question that I've had a few times before. I'd love to be able to write common elements (head, foot, navigation) once and write the individual pages on the site with co...

What are my options for HTML templating when not using a web server?

Rules One option per answer List language constraints A minimum of one pro and one con At least one URL resource. If your feeling generous include a description or your own experience with it. ...

Reconfiguring PHP Mail() Smarty Contact Form

Hi, I'm using Prestashop as my ecommerce shopping cart and CMS solution and was having problems receiving emails sent via the contact form. I asked around and found the problem to be due to the fact that I need to assign the 'from' address as something from my domain (e.g. [email protected]) and the email entered by user to be a...

Method as target of {if} in Smarty

Is there a way to use a method call of an object as the target of a conditional in a Smarty template? As a concrete example, I have an object $user with a method loggedIn(). I want to use this method to show extra info if the user is logged in. I can assign the return value of this method to a temporary variable and use this as the tar...

What software do you use for letter templating and printing?

In our LOB application there is a very important use case of printing letters, which are then printed and posted out from a mail house (thousands per day). The current situation is that the letter templates are created in Word 97 and fields are mail merged from values in database using a VB.Net application that basically uses word automa...

Email templating engine

I am about to write a simple email manager for the site I'm working on (asp.net/c#); the site sends out various emails, like on account creation, news, some user actions, etc. So there will be some email templates with placeholders like [$FirstName] which will be replaced by actual values. Pretty standard stuff. I'm just wondering if som...

What are the real advantages of templating engines over just using PHP?

I develop my web applications using only PHP for the view files and I don't feel limited in any way, but I hear there's a consistent number of developers advocating "external" templating engines. So what do template engines offer that simple PHP lacks? I'm looking for practical things, so I exclude the following: babysitting bad devel...

best template engine in java

I am looking for a template engine with iteration, bifurcation, markup alike and that takes a string for template input rather a file. That's because I have my own way to supply the input template, and is not for a file. Also it's have to be opensource. Do you know something like this? ...

Can I run a ASPX and grep the result without making HTTP request?

How can I just make a function call, without URL, and without HTTP, to a simple ASP.NET file, and capture the byte stream it generated? More background information, I need a some kind of template can put a little logic inside, to render some INI like text files. I give up those libraries ported from Java and come up a solution of usin...

Document generation template engine for production usage NVelocity vs StringTemplate

For building a document generation engine what would be the primary .NET framework to be used in production. The 2 main ones I see are NVelocity and StringTemplate. NVelocity in all forks to be almost unsupported at this point where as ST been active atleast as of this year. Are either or both of these stable for use in production (if n...

Cheetah with Cherrypy: how to load base templates, and do so automatically on change during development

I am working on a cherrypy+cheetah app and would like to improve the development experience. I have everything working when I manually compile templates beforehand. (Update: This is how things work for production: precompile, don't ship *.tmpl and load templates as regular python modules.) However, during development I'd rather just loa...

What should I use - Mako or Django?

Hi guys, I'm making a website that mail users when a movie or a pc game has released. It isn't too complex - users can sign up, choose movies/music or a genre and save the settings. When the movie/music is released - it mails the user. Some other functionality too but this is the jist. Now, I've been working with Python for a bit but m...

What does 'engine' refer to in Drupal Theming?

I've been reading about Drupal theming and preprocess functions and noticed they listed engineName_engine_preprocess & engineName_engine_preprocess_hook in the order of preprocess functions but I'm not entirely sure what the engine layer is? I understand about the core, includes, modules and themes. Many thanks ...

J2EE Template Engine Recommendations?

Looking to expand a current J2EE project using JSTL and Apache Torque with some sort of template engine so we can easily modify the views. Any suggestions? ...

Syntax Error with John Resig's Micro Templating after changing template tags <# {% {{ etc..

I'm having a bit of trouble with John Resig's Micro templating. Can anyone help me with why it isn't working? This is the template <script type="text/html" id="row_tmpl"> test content {%=id%} {%=name%} </script> And the modified section of the engine str .replace(/[\r\t\n]/g, " ") .split("{%").join("\t") .replace(...

Something like Smarty in ASP.NET ?

Recently, I was working with PHP. In PHP we have a powerful template engine like Smarty. Do we have something like Smarty in ASP.NET ? ...