lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, 19 Jan 2010, Jose wrote:

> > Parclate = require('lib.Parclate')
> > ts1 =[[<span l:for="k in numbers()" l:strip="">
> >    I am the <i>${k}</i> <b>${varname} line</b></br />
> > </span>]]
> 
> Hi,
> Parclate looks nice.
> I tried your example and it doesn't include the outer span tag. Is that a bug ?

Thanks. Leaving out the span tag in the above example is intentional.
The "for" statement is on the span tag, that means it would include the
span in every loop, but the l:strip="" removes the span tag from the
output leaving only the content of the span tag to loop. Using the
"strip" on a tag basically makes that tag a dummy to wrap other
commands. Not entirely intuitive, that's one of the shortcomings of the
XML approach.

	-T