>From: Richard Wallace <[EMAIL PROTECTED]> 
>
> I'm playing with templating using symbol replacement like in the 
> use-cases. It's very cool and very powerful. A couple of things that 
> are strange tho: 
> 
> 1) The first letter of the content of the file being used is being 
> cutoff. So, for instance, I have the clay definition: 
> 
> 
> For testing, in left.html and footer.html I just have simple one liners 
> like "This is the footer. It can be found in /templates/footer.html" 
> The first letter in "This" is being chopped off so it's displayed as 
> "his is the footer..." The only one this doesn't happen on is the 
> header.html which has . That is displayed 
> totally fine. Is it a rule that these files should begin with some 
> component or is something else going on? 
> 

<p>This is the footer</p>
Try wrapping the text in a paragraph.  I never thought to try 
just text without markup.  I'll take a look at that one.


> 2) This one is really strange. If I try and change the names of the 
> symbols @headercontent, @leftcontent, @bodycontent, and @footercontent 
> so that the C in content is capitalized (@leftContent, etc.), and go 
> through and change the usage of them _everywhere_ then defining a page 
> that overrides those settings doesn't work. So normally I might have 
> something like 
> 
> > bodycontent="/testtemplatingbody.html" 
> leftcontent="/templates/blank.html" 
> allowBody="false"> 
> 
> 
> The entire document is replaced by the layout. 
> 
> 
> And that works great. But if I change all the symbol names to have a 
> capital C, Clay seems to ignore the settings in the page definition and 
> just use the default values for commonPageLayout. Weird, huh? Any 
> ideas what's going on with this one? 
> 

The html parser normalizes the case of attributes to lower case.  The symbols
replacement is case insensitive but the symbol inheritance must not be 
doing the same. 

Please write these up in tickets: 
http://issues.apache.org/bugzilla/enter_bug.cgi


> Neither one of these is a big problem, just little oddities I've run 
> into today as I've explored Clay. 
> 

Thanks for the feedback.

> Rich 

Gary

> 
> 
> --------------------------------------------------------------------- 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> 

Reply via email to