Skip to content

Fix backward syntax

Currently, our syntax requires to place attributes of a tag after its contents:

Div(
   content,
   cls='someclas',
)

This is ackward and not manageable with lots of code.

Here's a pythonic solution that fixes this problem:

Div(cls='someclas')(
   content
)

This means renaming CTree.__call__ to something else.