Skip to content
padolsey edited this page Mar 16, 2013 · 2 revisions

Declaring elements & hierarchies

SIML tries to emulate the syntax of CSS selectors, so you should be able to understand and use it if you know a bit of CSS. The basic gist is:

SIML will seek to create an HTML structure that satisfies the hierarchy you outline

So a becomes <a></a> and a.foo[href] becomes <a class="foo" href></a>. The CSS selector components currently supported include:

  • Tags (a, div, header, foobar, whateverYouWant)
  • Class names (.foo, .some.more.classes)
  • IDs (#foo)
  • Attributes ([disabled, [value=something], [href="http://google.com"])
  • Limited Pseudos (e.g. with the HTML5 parser you can do input:checkbox etc.)
Clone this wiki locally