/
githubmirror
/
angular.js
Обзор
Документация
Войти
/
githubmirror
/
angular.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/config/templates/examples/runnableExample.template.html
26 строк
1 KB
Martin Staffa
revert: chore(docs-app): load example files based on active deployment
23 авг 2017, 12:52
23 авг 2017, 12:52
48f0957
Код
Авторство
О чём код?
{# Be aware that we need these extra new lines here or marked will not realize that the <div> is HTML and wrap each line in a <p> - thus breaking the HTML #} <div> <plnkr-opener example-path="{$ doc.path $}"></plnkr-opener> <div class="runnable-example" path="{$ doc.example.deployments.default.path $}" {%- for attrName, attrValue in doc.example.attributes %} {$ attrName $}="{$ attrValue $}"{% endfor %}> {% for fileName, file in doc.example.files %} <div class="runnable-example-file" {% for attrName, attrValue in file.attributes %} {$ attrName $}="{$ attrValue $}"{% endfor %}> {% code -%} {$ file.fileContents $} {%- endcode %} </div> {% endfor %} <iframe class="runnable-example-frame" src="{$ doc.example.deployments.default.outputPath $}" name="{$ doc.example.id $}"></iframe> </div> </div> {# Be aware that we need these extra new lines here or marked will not realize that the <div> above is HTML and wrap each line in a <p> - thus breaking the HTML #}