I'm thinking about layouts for HTML. I know alot has been written about XML, CSS, etc for seperating content from the look-and-feel.
I'm interested in making the look-and-feel as customizable as possible. More than just changing styles of text - I'd like to be able to change the order of the components, and the manner in which the components are layed out. By components I guess I mostly mean text boxes like Chatterbox. Each component can have it's own layout xml file, describing the order and manner inwhich it's components are displayed. For Example, the Chatterbox layout file might specify that the Talk input appear at the top.
I guess I'd just like peoples thoughts. I know there are many existing projects that must touch on this.
A big concern I have is how to implement components in perl. If perl was reading a layout file on-the-fly, and it discovered it required to render component X, then X could be a class of sorts, but:
- How to load the class X in a timely and memory efficient way? (I like the idea of Java Servlets - is there a similar model for perl?)
- How to make X aware of the environment restrictions that it is rendering to? (eg: the background colour is white and you have 300 width to work with ... please don't do not use yellow as your text colour and do not create any 600-width tables! ... I'm thinking that there might have to be a certain level of trust on this!)
thanks
Prarie Dawn
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.