[TYPO3-dev] Just an idea: Markup Wrapper
Oliver Klee
typo3-german-02 at oliverklee.de
Tue Oct 13 11:23:15 CEST 2009
Hi,
Sebastian Gebhard schrieb:
> Example1:
> - Write [br] in the page template
> - The Markup Wrapper will recognise all tags in [squared brackets]
> - The Markup Wrapper will read config.doctype and generate the according
> markup
> - It will return <br /> for XHTML doctypes and <br> for HTML doctypes
I'd prefer removing the hardcoded tags and have some HTML creator class
with different "flavors" using the Strategy pattern. This will allow
adding new document types practically without having to change existing
code.
Oliver
More information about the TYPO3-dev
mailing list