an IPython magic for authoring HTML in Jade ne Pug.
In [32]:
%reload_ext jademagic
In [33]:
%%jade
ul
each x in [1, 2, 3, 4, 5]
li: i.fa.fa-gift(class='fa-#{x}x')
Out[33]:
which can be accessed by the special last result variable _:
In [34]:
_
Out[34]:
Or will update a named variable with the parsed document:
In [35]:
%%jade spock
i.fa.fa-spock.fa-5x
In [36]:
spock
Out[36]:
Issues and pull requests welcome!
jademagic is released as free software under the BSD 3-Clause license.
%%html