By: Lush
Date: 2011-03-04
Time: 06:51
|
getbody evolution
Hi,
would it be feasible to select an element with a specific ID instead of a tag name in getbody?
For instance, something like [onload;file=myfile;getbody=%myelement] would grab <div id="myelement">my text</div> instead of the whole body.
(% or whatever markup or sign, just a way to tell tbs to look for an element ID and not a tag)
At the moment I use tag names such as <include1>my text</include1> and getbody=include1 to include only specific sections from my source file, but I have to exclude the surrounding tags and I don't feel it's an elegant solution as it clutters my source file with "non-valid" tags.
Or maybe is there another way to achieve this that I may have missed?
Thanks for reading :)
|