Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
Document args to macros.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Cochrane committed Mar 18, 2018
1 parent 3474f92 commit 4fca870
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/pages/history
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Designed (using typography) to make it quick to locate particular dates
and to visually communicate the paths surfers took through this history. #}
<!DOCTYPE html>
{% macro hl-change %}
{% macro hl-change fmt %}
{% ifchanged visited_at|date:fmt %}<strong>{{visited_at|date:fmt}}</strong>{% else %}{{visited_at|date:fmt}}{% endif %}
{% endmacro %}
<html>
Expand Down
1 change: 1 addition & 0 deletions src/Services/database/prosody.vala
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ namespace Odysseus.Database.Prosody {
// Though it *does* require it to handle {% with %}.
public Template? build(Parser parser, WordIter args) throws SyntaxError {
var name = args.next();
// Don't assert end, so templates can indicate which args they expect.

WordIter endtoken;
var body = parser.scan_until("endmacro", out endtoken);
Expand Down

0 comments on commit 4fca870

Please sign in to comment.