Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How to parse multiple body tags in Sitemesh 3
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
dan@bodar.com  
View profile  
 More options Nov 9 2012, 2:21 am
From: "d...@bodar.com" <daniel.bod...@gmail.com>
Date: Thu, 8 Nov 2012 23:21:33 -0800 (PST)
Local: Fri, Nov 9 2012 2:21 am
Subject: Re: How to parse multiple body tags in Sitemesh 3

Dual posted here and StackOverflow:

If you don't mind extending Sitemesh 3 then this is fairly easy to do by
adding support for server side includes in your decorator template. I do
exactly this in another library (UtterlyIdle<http://code.google.com/p/utterlyidle/>
).

I'm using StringTemplate as my decorator language but this should work in
Freemarker or any other templating tool. I add in a PageMap<http://code.google.com/p/utterlyidle/source/browse/src/com/googlecode...> and
then in my decorator template call

$include("someUrl").body$

This does an include and then parses the output with the Sitemesh 3 engine.
This allows you to have as many includes as you like.

Hope that makes sense

Dan

On Thursday, 8 November 2012 04:17:35 UTC, Shirish Padalkar wrote:

> Hi guys,

> I have posted a question on StackOverflow about how to parse a document
> with multiple body, head tags with Sitemesh3. Can you please have a look at
> it and answer?

> http://stackoverflow.com/questions/13250730/multiple-body-tags-in-sit...

> Thanks.

> With regards,
> Shirish Padalkar
> http://twitter.com/_Garbage_


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.