forked from SimpleUpdates/ThemePatternGuide
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpattern-include.html
More file actions
Latest commit
executable file
·25 lines (22 loc) · 770 Bytes
/
Copy pathpattern-include.html
File metadata and controls
executable file
·25 lines (22 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{# accepts partial, scenarios, params #}
{% embed "#{styleguideThemePath}/pattern.html" with {
name: partial,
isRefreshable: true
} %}
{% block scenarios %}
{% for name, scenario in scenarios %}
{% include "#{styleguideThemePath}/scenario-include.html" with {
name: name,
partial: partial,
scenario: scenario
} %}
{% endfor %}
{% include "#{styleguideThemePath}/scenario-include.html" with {
name: "Unconfigured",
partial: partial
} %}
{% endblock %}
{% block usage %}{% spaceless %}
{{ "{% include \"#{name}\"" }}{{ ( params ) ? " with {" }}{% for p in params %}{{ "\r\n \"#{p}\": #{p}" }}{{ ( not loop.last ) ? ", " : "\r\n" }}{% endfor %}{{ ( params ) ? "} " }}{{ " %}" }}
{% endspaceless %}{% endblock %}
{% endembed %}