Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

People also know CSS query selectors...

    <label>
      <input:checkbox:checked#myCheckbox>
      <span> Some Text
Might be nicer than actually spelling out the attributes and properties, if you're taking an already wrist friendly language and bolting on tags, then taking that a step farther would probably be a nice idea as well.


Imba supports the syntax for IDs and classes:

    <label#foo.bar .baz=isBaz> "Label"
compiles to:

    ti$('label','foo').flag('bar').flag('baz',this.isBaz()).setText("Label").end()
where `flag` is a method which adds to the class list (unless the second argument is falsey).


Ok that is awesome.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: