Kanarie: Template Processing

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

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? :)

-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/

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

Search



Quick Links

User menu

Not signed in.

Misc Menu