Thank you Geert, I did not realize that you can include a block definition in a comment preventing it to be viewed in the browser in preview mode.
Good work! Jean-Marie Geert Bevin wrote: > > Hi Jean-Marie, > > you can achieve this by structuring your template a bit, for example: > > <html> > <body> > <r:v name="val1"/> > <r:b name="block1">stuff</r:b> > <!-- don't display this -- > <r:b name="block2">more stuff</r:b> > --> > </body> > </html> > > If you want the comment tag to be stripped when it's printed through > RIFE, you can do this: > > <html> > <body> > <r:v name="val1"/> > <r:b name="block1">stuff</r:b> > <r:b name="stripthis"><!-- don't display this -- > <r:b name="block2">more stuff</r:b> > --></r:b> > </body> > </html> > > Where "stripthis" is any block ID that you don't actually use, but > that will simply be removed when RIFE prints out the template. > > Hope this helps. > > Geert > > On 15 Jan 2007, at 12:38, Jean-Marie Galliot wrote: > >> >> Changing from <!--V to <r:b notation, at a second thought, won't >> change >> anything since the contents of the block is still outside of the >> tag pair. >> >> Frankly I don't see any solution. >> >> >> Jean-Marie Galliot wrote: >>> >>> Hi Geert, >>> >>> One of the thing which appealed to me in Rife was the fact that I >>> hate the >>> jsp tag-soup. >>> >>> I wanted to have a templating system which allow web designer to >>> visualize >>> pages in their editor and browser without being obliged to start the >>> server. >>> >>> Tapestry and Wicket also offered this kind of "non intrusive" >>> instrumentation of web pages. >>> >>> I thought it was also the case for Rife as I saw at a first glance >>> that >>> the tags (at least the first version of them) was HTML-Comment like. >>> >>> But, I realize that when I define two or three blocks as alternative >>> values for a "value" tag, those three blocks appear if I open a >>> browser >>> and try to pre-visualize the page. >>> >>> Is there a way to prevent some of them to appear in the browser? >>> >>> Do you think that coding them as <r:b> instead of <!--B> is a >>> sound and >>> safe solution to that problem? >>> >>> Beside that I would say that I love the templating system which >>> allow to >>> really keep presentation and business logic separate. >>> >>> Thanks >>> >>> Jean-Marie >>> >> >> -- >> View this message in context: http://www.nabble.com/templates- >> viewed-in-a-browser-tf3010833.html#a8370238 >> Sent from the RIFE - users mailing list archive at Nabble.com. >> >> _______________________________________________ >> Rife-users mailing list >> [email protected] >> http://lists.uwyn.com/mailman/listinfo/rife-users >> > > -- > Geert Bevin > Uwyn "Use what you need" - http://uwyn.com > RIFE Java application framework - http://rifers.org > Music and words - http://gbevin.com > > > _______________________________________________ > Rife-users mailing list > [email protected] > http://lists.uwyn.com/mailman/listinfo/rife-users > > -- View this message in context: http://www.nabble.com/templates-viewed-in-a-browser-tf3010833.html#a8376370 Sent from the RIFE - users mailing list archive at Nabble.com. _______________________________________________ Rife-users mailing list [email protected] http://lists.uwyn.com/mailman/listinfo/rife-users
