forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <nicola...@apache.org>
Subject Re: forrest:hooks configurations examples (was [Views] <div id="titi"/> strange behaviour)
Date Wed, 27 Jul 2005 06:18:02 GMT
Thorsten Scherler wrote:
...
> <forrest:hook name="testIdDiv"/>
> *or*
> <forrest:hook name="testIdDiv" type="div"/>
> will be transformed into 
> <div name="testIdDiv" />

Then why not simply use

 <div name="testIdDiv" />

> The same is true for @class attribute for forrest:hooks.
> <forrest:hook class="testClassDiv"/>
> *or*
> <forrest:hook class="testClassDiv" type="div"/>
> will be transformed into 
> <div class="testClassDiv" />

Then why not simply use:

  <div class="testClassDiv" />

> Another feature is that you can as well output span elements for
> forrest:hooks instead of div elements.
> <forrest:hook name="testId" type="span"/>
> will be transformed into 
> <span id="testId" />

Then why not simply use

  <span id="testId" />

...
> Here is a small summary example:
> <forrest:hook class="testClass" type="span" nbsp="true"/>
> <forrest:hook name="testId" type="span"/>
> <forrest:hook class="testClassDiv" />
> <forrest:hook name="testIdDiv" type="div" nbsp="true"/>
> 
> will be transformed to:
> 
> <span class="testClass"> </span>
> <span id="testId" />
> <div class="testClassDiv" />
> <div id="testIdDiv"> </div>

Again, why cannot we use the second version instead of creating another
new language?

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
            - verba volant, scripta manent -
   (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Mime
View raw message