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

Commit

Permalink
Merge pull request #26 from brycelelbach/refactor-template-if-expecti…
Browse files Browse the repository at this point in the history
…ng-lazy-evaluation

Refactor a `{% if exists("kind") and kind != "page" %}` into two if blocks
  • Loading branch information
matusnovak authored Jan 3, 2021
2 parents 7c7f3ae + 5547905 commit c2cde62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Doxybook/DefaultTemplates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ static const std::string TEMPLATE_HEADER =
{% include "meta" %}
---
{% if exists("title") %}# {{title}}{% else if exists("kind") and kind != "page" %}# {{name}} {{title(kind)}} Reference{% endif %}
{% if exists("title") %}# {{title}}{% else if exists("kind") %}{% if kind != "page" %}# {{name}} {{title(kind)}} Reference{% endif %}{% endif %}
)";

static const std::string TEMPLATE_BREADCRUMBS =
Expand Down

0 comments on commit c2cde62

Please # to comment.