What does HackerNews think of pyxl?

A Python extension for writing structured and reusable inline HTML.

Language: Python

is there any compile-to-javascript languages which would be termed as "disgusting" and "impure"?

https://github.com/dropbox/pyxl for python comes to mind as something more enjoyable than manually doing tree-shaped OOP

    login = : //"read variable from indented block" symbol of magicness
        
            
            
            {_("Sign in")} //gotta have an excuse to inline code!
        
    login.events({
        onsubmit (whatever, i dunno) {
            blap
        }
    });
seems a lot more fun!
> If there were a macro framework that used `coding`

Does JSX-like template for Python count?

https://github.com/dropbox/pyxl

    # coding: pyxl
    print Hello {my_var}!
Combined with this, we can make Meteorjs-like applications in Python directly. Even AST transformation of backend DOM operations in Python directly rendered to Javascript to browser.

    Also, if this thing is truly mangling bytecode, it's not portable between
    different python versions [...] seems to be done by interpy_untokenize,
    which boils down to some string mangling
It uses the Python file encoding property ("# coding: foobar") to rewrite the source code, not the bytecode, and they refer to pyxl as an inspiration.

For a good explanation, see https://github.com/dropbox/pyxl

Another gem is pyxl from Dropbox

https://github.com/dropbox/pyxl

Reminds me of JSX/E4X/XML Islands, etc.

Try Pyxl

https://github.com/dropbox/pyxl

I don't work at Dropbox but I did work at Cove where this was originally developed and it is great. Makes working with HTML in Python so easy.

I also my own version of it that I have rewritten to treat the HTML object more like jQuery does and added more jQuery methods to it.