$def with (work) $ i18n_strings = { $ "empty_excerpt": _("Please provide an excerpt."), $ "over_wordcount": _("That excerpt is too long.") $ }
{{excerpt}} {{cond(pages, "From page " + pages + ".", "")}} $if ctx.user: $ctx.user.displayname $_("noted:") "{{comment}}" $else: $:_("An anonymous note:") "{{comment}}"
$for line in excerpt.excerpt.split('\n'): $line $if excerpt.pages: $_("From page") $excerpt.pages. $if excerpt.author: $excerpt.author.displayname $_("noted:") $else: $_("An anonymous note:") "$excerpt.comment"