Re: Kanarie: Template Processing

new topic     » goto parent     » topic index » view thread      » older message » newer message

Tommy Carlier wrote:

> cklester wrote:
>
>> Tommy,
>> I've got a template that conditionally includes another file, and that other
>> file has knr fields in it that don't get processed. Is there something I
>> should
>> know about this (like, there's no provision for processing included files)?
>> :)
>>
>> Example:
>>
>> {create_new=db:}{$dbcreate.form}
>> {:create_new=table:}{$tablecreate.form}
>> {:create_new=record:}<p>Create Record Form</p>{:create_new}
>>
>> In the above example, tablecreate.form looks like this:
>>
>> <form name="create_table">
>>     <p>Table Name: <input type="text" name="txt_new_table_name"
>>     size="20"></p>
>>     <p><input type="submit" name="bttn_tablecreate" value="Create Table"></p>
>>     <input type="hidden" name="db" value="{current_db}">
>> </form>
>>
>> Notice the {current_db} field in the hidden db input.
>>
>> Is this a valid way to do things? :)
>
> Well, it would be nice if it worked like this. But all it does is literally
> insert the contents of the file, WHEN GENERATING THE OUTPUT.
>
> What you're looking for, is an include of a template in another template.
> This would mean that KTS would have to insert the contents of the file
> WHILE PARSING THE TEMPLATE. To be honest, I haven't thought of this situation
> before. And I can see certain practical problems that would need solving.
>
> I'll see if it can be implemented. From your example, I can see how useful
> it really is.

If I understand it correctly, this is the same that I've been asking for
some time ago. smile
This feature also would be useful for my Kanarie based Eu preprocessor.

Regards,
   Juergen

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu