My main complaint with Haml and Sass are that they introduce yet another syntax, all while trying to simplify things. On the other extreme XSLT uses XML syntax, but can get pretty complex, usually unnecessarily so - it also introduces XPath, which some developers may not know.
Ideally we should find something in the middle. - Trevor On Thu, Sep 8, 2011 at 9:39 AM, Ashar Voultoiz <[email protected]> wrote: > On 06/09/11 08:27, Daniel Friesen wrote: > <snip> > > So, I'd love to see other peoples ideas on the best syntax for our skin > > system. > > Or ideas or comments on how to fix the problem with the syntax I came up > > with. > > Can you possibly have a look at HAML? It is a basic language that makes > HTML 'simpler' and allow variables, if, foreach : http://haml-lang.com/ > > It comes from the ruby on rails community but has an implementation in > PHP : http://phphaml.sourceforge.net/ The page has an example :-) > > Might be better than reinventing the wheel. > > Another possibility will be to generate an XML document and apply a XSLT > stylesheet on it. But I am not sure it will make things easier. > > > PS: CSS have a similar abstract language: http://sass-lang.com/ > > -- > Ashar Voultoiz > > > _______________________________________________ > Wikitech-l mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
