#911: Jinja2 instead of BibConvert
-----------------------------------------------+-----------------
 Reporter:  skaplun                            |      Owner:
     Type:  enhancement                        |     Status:  new
 Priority:  minor                              |  Milestone:
Component:  BibConvert                         |    Version:
 Keywords:  WebSubmit record creation marcxml  |
-----------------------------------------------+-----------------
 Now that we are switching to Flask and consequently to Jinja2 as
 templating language, we can exploit this to have it as a lingua franca for
 templates in Invenio.

 For example it could be used to create XMLMARC record, given its XML
 friendly feature (e.g. autoescape), its simple syntax (to create IF and
 FOR constructs), and we might power it with some builtin extension to
 easily generate MARCXML,

 To allow e.g. for writing:
 {{{
 {% if authors %}
   {{ datafield("100") subfield("a", authors[0]) enddatafield }}
   {% for author in authors[1:] %}
     {{ datafield("700") subfield("a", author) enddatafield }}
   {% end for %}
 {% end if %}
 }}}

-- 
Ticket URL: <http://invenio-software.org/ticket/911>
Invenio <http://invenio-software.org>

Reply via email to