By: Johannes
Date: 2006-08-25
Time: 09:48
|
template as string not as fileressourceHello TBS-Team at first: your template engine is my favorite engine - its so small and easy to use... and it works fine.
The only thing i added on my own is the possibility to use the TBS->LoadTemplate($template [,$isFileOrString])-Method with two parameters. Where the first gives the Template, which could be a File or a String and the second parameter is used to specify if its a file which is default or a string where you need a Flag. it's easy to add and costs no performance. So how do you think about it? - so i don't have to add it each version which is coming up! best wishes from Germany Johannes |
|||
By: TomH
Date: 2006-08-25
Time: 16:17
|
Re: template as string not as fileressourceYou can do this already in TBS usin g the TBS->Source property.
From the manual
See also http://www.tinybutstrong.com/forum.php?msg_id=2188 HTH, |
|||
By: Johannes
Date: 2006-09-16
Time: 00:42
|
Re: template as string not as fileressource...this is a possibility, but i don't know how to solve the different behaviour (means htmlentities) from my solution.
in my solution i can use html-code without any problems, in your solution the html-code is encoded for presentation - means in my solution a " is a " in your solution a " is a & quot; |
|||
By: sheepy
Date: 2006-09-20
Time: 05:29
|
Re: template as string not as fileressourceYou can tell tbs to do no conversion by LoadTemplate, then you can set the source to whatever you want.
|
|||
By: Johannes
Date: 2006-09-21
Time: 21:27
|
Re: template as string not as fileressourceIt definitely works not in the way i wan't it to work.
My Code is:
my new Method of LoadTemplate() looks like:
tbs_Misc_GetFile() Method:
how do i rebild this functionality with yet implemented functionality? Thank you for help Johannes |