- django integration example
- auto-converter from HTML and Django Templates (and other templating languages)
- self-closing tags (br, img,..)
- special attributes (class, is,..)
- custom anchor point for children
- support escaped string (markdown rendered, javascript,...)
other ideas:
-
use beautifulsoup to store the node ? nice querying, prettify,..
-
what to do with the a() / b() / c() trap ?
-
also a() / b() + c() trap, change operator to high priority instead ?
- content can go as first arg too (
H.span('the dress is green'))- if this is used, forbid a new
/since it's counter-intuitive
- if this is used, forbid a new
- content can go as first arg too (
-
less typing
H.spanis valid tooH('#main.red.big')to create<div id='main' class='red big'>
-
change main letter to
L? -
safe execution (sandbox) so user write the stuff directly
- clear error & clear when a / b / c
- custome node
- good repr()
- import * des balises
- https://github.com/blakev/lys/commit/f8374b4d76dc28e00e77f869700d2bcc6a44d032
ideas after making a website:
TypeError: call() takes from 1 to 2 positional arguments but 3 were given
=> do not return the Lys object directly, do str(node) befores
BASIC "HELP ME PLEASE" MODE WHERE IT PREVENT BASIC ERROR (mystyped css, atributes,...)
would be nice to have live editing (save the round trip from chrome)
autogenerated class names