[Lazarus] fpWeb and templates
ABorka
fpc-devel at aborka.com
Fri Dec 17 18:52:20 CET 2010
On 12/17/2010 05:34, ik wrote:
> Can I load sub template inside the main template ?
>
> Ido
>
> LINESIP - Opening the source for communication
> http://www.linesip.com
> http://www.linesip.co.il
>
>
>
>
> On Fri, Dec 17, 2010 at 15:30, Michael Van Canneyt
> <michael at freepascal.org <mailto:michael at freepascal.org>> wrote:
>
>
>
> On Fri, 17 Dec 2010, ik wrote:
>
> Hello,
>
> I'm trying to Create a template that only the content changes
> inside, like I do with Sinatra
> and Rails, using fpWeb.
>
> In Sinatra for example you have a file called layout.erb that
> contains the layout, and inside
> there is a yield for the content.
> How can I do the same using fpWeb ?
>
>
> In much the same way, I expect ?
> In an action, configure the template property:
> - Set filename
> - In the OnReplaceTag event, set the content.
>
> Michael.
There are examples for using templates in
...lazarus/components/fpweb/demo/fptemplate/...
also, there is a discussion that contains info about how to do nested
templates at
http://www.lazarus.freepascal.org/index.php/topic,10814.0.html
AB
More information about the Lazarus
mailing list