mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-05-16 21:00:16 +00:00
46 lines
No EOL
1,015 B
Smarty
46 lines
No EOL
1,015 B
Smarty
{%- extends 'markdown.tpl' -%}
|
|
|
|
{%- block header -%}
|
|
---
|
|
layout: docs
|
|
docid: "{{resources['metadata']['name']}}"
|
|
title: "{{resources['metadata']['name'].replace('_', ' ').title()}}"
|
|
permalink: /docs/{{resources['metadata']['name']}}.html
|
|
---
|
|
{%- endblock header -%}
|
|
|
|
{%- block any_cell -%}
|
|
{%- if not cell.metadata.get("block_hidden", False) -%}
|
|
{{ super() }}
|
|
{%- endif -%}
|
|
{%- endblock any_cell -%}
|
|
|
|
{% block input %}
|
|
{%- if cell.source[:3] == "%%R" -%}
|
|
```R
|
|
# R
|
|
{{ '\n'.join(cell.source.split('\n')[1:]) }}
|
|
```
|
|
{%- else -%}
|
|
```python
|
|
# Python
|
|
{{ cell.source }}
|
|
```
|
|
{%- endif -%}
|
|
{%- endblock input -%}
|
|
|
|
{%- block output_group -%}
|
|
{%- if not cell.metadata.get("output_hidden", False) -%}
|
|
{{ super() }}
|
|
{%- endif -%}
|
|
{%- endblock output_group -%}
|
|
|
|
{%- block input_group -%}
|
|
{%- if not cell.metadata.get("input_hidden", False) -%}
|
|
{{ super() }}
|
|
{%- endif -%}
|
|
{%- endblock input_group -%}
|
|
|
|
{% block data_png %}
|
|

|
|
{% endblock data_png %} |