In Velocity you can also use the #include directive. That's what we do usually: we use something like a "maintemplate" which includes the "content part" from another template with #include...
best regards mike > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf Of Ian Boston > Sent: Saturday, September 08, 2012 7:36 AM > To: [email protected] > Subject: Re: Sling and html templates? > > Hi, > > Try using macros with Freemaker[1]. > I think you can do the same with Velocity. > The child page re-defines the macro. > Its not quite as elegant as true template inheritance as found in some > other template libraries eg[2] > > You could probably do something simular with the jsp include directive.[3] > > HTH > Ian > > > 1 > http://freemarker.624813.n4.nabble.com/Fwd-template-inheritance-for-freemarker- > td2296583.html > 2 http://jinja.pocoo.org/docs/templates/ > 3 http://java.sun.com/products/jsp/syntax/1.2/syntaxref1214.html > > > On 8 September 2012 11:50, Günther Schmidt <[email protected]> wrote: > > Hi, > > > > I'm just giving Sling another try, as a cms, since I don't want to use > > wordpress, joomla or any of the others. > > Getting the hang of sling is gonna cost me some time in any case but there's > > one thing I'm wondering about upfront: > > > > Does sling allow to build basic templates, so that I do not need to write > > the main, ie. outer html every time? > > > > I'd just like to have one single outer html file for let's say a list and a > > detail view. > > > > Günther
