Daniel Fagerstrom wrote:

> Instruction Inclusion
> =====================
> 
> Now for the instructions (jx:forEach etc) we have the 
> question if they 
> should be choosed:
> 
> 1. Programatically: There is an abstract base class with 
> common template 
> generator functionality. To implement e.g. JXTG this base class is 
> extended. And the extended class enumerates the instructions 
> that should 
> be used and also choose parsing strategy etc.
> 
> 2. Configuration: Instructions or set of instructions are made 
> components and connected to the template generator in the 
> configuration.
> 
> 3. Within the template language: There are special 
> instructions in some 
> common base template language that allow the user to include sets of 
> (Java written) instructions.

What kind of instructions did you have in mind? 

The reason I ask is I wonder if it's really necessary to add extra instructions 
to the template language? A language with conditionals, iteration, AND 
recursion is surely already Turing-complete, and doesn't really need more 
control structures? 

Con

Reply via email to