{% if not raw %} {% set urlPrefix = endpoint ~ '/resource/' ~ dbNum %} {% set html = note.parseHtml(urlPrefix) %} Note (html) {{html|raw}} Note (doc) {{note.doc}} {% if note.resources %} Resources {{note.resources|length}} {% for hash, resource in note.resources %} Resource {{hash}} {{ include('models/resource.html', {resource: resource, hash: hash, endpoint: endpoint, dbNum: dbNum}, with_context = false) }} {% endfor %} {% endif %} {% else %}
{{note|json_encode(constant('JSON_PRETTY_PRINT') b-or constant('JSON_UNESCAPED_SLASHES') b-or constant('JSON_UNESCAPED_UNICODE'))}}
{% endif %}