[Lazarus] fpWeb and templates
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 ?
> LINESIP - Opening the source for communication
> 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:
> 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.
There are examples for using templates in
also, there is a discussion that contains info about how to do nested
More information about the Lazarus