3 ms·
if you already have a way of printing XML, you can add a "printer" field (that is a python function) to your template, like so:http://github.com/plaitpy/plaitpy
by logv 9y ago
if you already have a way of printing XML, you can add a "printer" field (that is a python function) to your template, like so:http://github.com/plaitpy/plaitpy/blob/master/templates/testcase/codechef.yaml http://github.com/plaitpy/plaitpy/blob/master/templates/test...
if that function uses an import, you might also need to add an "imports" field, like in this example: https://github.com/plaitpy/plaitpy/blob/master/templates/web/browser_with_geoip.yaml#L26 https://github.com/plaitpy/plaitpy/blob/master/templates/web...
otherwise, that's a feature that can be added here:
https://github.com/plaitpy/plaitpy/blob/master/src/fields.py#L1019 https://github.com/plaitpy/plaitpy/blob/master/src/fields.py..., if it works for you (and is added as a flag), i'd be happy to take patches.