[Lazarus] fpWeb and templates

ik idokan at gmail.com
Fri Dec 17 14:34:52 CET 2010


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>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.
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20101217/b50fde8e/attachment-0003.html>


More information about the Lazarus mailing list