At 08:55 12.06.2002, Stas Bekman wrote:
Per Einar Ellefsen wrote:
At 06:08 12.06.2002, Stas Bekman wrote:
It's not easy though, since different tags have different elements, so the templates should be aware of that.

But if templates never receive raw HTML, later on we can extend POD to provide similar headers.

Bah, so this means I have to invent a tree structure for the HTML a la XML::Simple? Sounds prtty shaky to me... I was going to try HTML::TreeBuilder, but it's not easy enough.. I'll continue to look at this problem.

HTML::Parser should do just fine for parsing. It's not the question of implementation it's the question of how it should be implemented so the future will be as flexible as possible.


For example we can make the only certain parts of the header reproducable and without trying to reproduce them all. Like we do now for title and meta:description. So I suggest that we handle in addition any other meta tags and the base tag. later we can add other tags as requirement grows. If this is satisfying it's very easy to implement in the code and then make the templates use these new datastructures.

Well, I was trying to make it so that we would just get all the tags in head, except title and meta:description.
But ok, your idea seems fine (and easier too :) My reason for looking to another parser was to get an easy tree structure.


But should I drop the current special handling of title and abstract, or should those still exist, *and* add their respective tags to whatever I return for the headers? Or should I return the headers without title and meta:description?


-- Per Einar Ellefsen [EMAIL PROTECTED]



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



Reply via email to