pyjade icon indicating copy to clipboard operation
pyjade copied to clipboard

Is any way to use pyjade to complier jade string to html directly inside python script?

Open redyyu opened this issue 9 years ago • 2 comments

Can I just pass a pure 'jade' format string (unicode), then convert and return to a 'html' string. Is possible to do that?

  1. No any other template engine required
  2. No any args need to be pass-in by python while convert to html.

redyyu avatar Mar 09 '15 18:03 redyyu

I find 'pyjade.ext.html.process_jade' from test case, but I am not sure this is right way to do it. is it?

redyyu avatar Mar 09 '15 18:03 redyyu

The way you point out is correct. I added a convenience function to call this directly and updated the README. https://github.com/syrusakbary/pyjade/pull/193

jkliff avatar May 23 '15 07:05 jkliff