GitbookIO / theme-api

Theme for publishing a beautiful API documentation with GitBook
151 stars 26 forks source link

Nunjucks includes not working inside {% method %} #3

Closed voidmain closed 8 years ago

voidmain commented 8 years ago

I can't seem to get the include tag to work inside a {% method %} definition. If I pull the include outside, it works fine. I'm guessing that the plugin is ignoring that or interfering with the templating system somehow.

Here's my example:

{% method %}
Some content that renders

{% include "../response-codes.md" %}

This content doesn't render at all.

{% common %}
This content renders in the code example side.

{% endmethod %}
jpreynat commented 8 years ago

Hi @voidmain,

This issue has been fixed in the plugin by 0d4a745b1a47de24ddb80bdce6929dd9aba41039. However, an issue remains on gitbook to have nunjucks include tag working inside custom tags that we need to fix before this works.