Skip to content

Commit

Permalink
more template for the pelican static website
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Fiers committed Sep 5, 2012
1 parent 80a1463 commit 1bee14d
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/python/moa/plugin/system/doc/templates/redirect.jinja2
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Moa pelican page for {{ WD }}</title>
<meta http-equiv="REFRESH" content="0;url=./doc/pelican/index.html"></HEAD>
<BODY>
..should have redirected...
</BODY>
</HTML>
42 changes: 42 additions & 0 deletions lib/python/moa/plugin/system/doc/templates/template.page.jinja2
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Title: template "{{ t.moa_id }}"

{{ t.description }}

{% macro printpar(p) -%}
{{ "%24s"|format('**' + p + '**') }} |
{%- if t.parameters[p]['optional'] == False %} M {% else %} O {% endif %}|
{%- if t.parameters[p]['type'] %}{{ "%10s"|format(t.parameters[p].type)}} {% else %} - {% endif -%}
|{% if t.parameters[p].help %}{{t.parameters[p].help}}{%endif%}
{% endmacro -%}

{%- macro printfs(f) -%}
{{ "%24s"|format('**' + f + '**') }} |{%- set strip='yes' -%}
{% if t.filesets[f].optional%} O {% else %} M {% endif %}|{%- set strip='yes' -%}
{{ "%10s"|format(t.filesets[f].category) }}|{%- set strip='yes' -%}
{{ "%10s"|format(t.filesets[f].type) }}|{%- set strip='yes' -%}
{% if t.filesets[f].help %}{{ t.filesets[f].help }}{% endif %}
{% endmacro -%}

### Filesets

Name | O | category | type | help
-------------------------|---|----------|----------|-------------------------------------------------------------
{% for p in t.filesets -%}
{{ printfs(p) }}
{%- endfor %}

### Parameters

Name | O | type | help
-------------------------|---|-----------|-------------------------------------------------------------
{% for p in t.parameters -%}
{%- if p[0] != "_" and p[:4] != "moa" %}{{printpar(p)}}{% endif %}
{%- endfor %}



### General

* Author: {{ t.author }}
* Backend: {{ t.backend }}
*

0 comments on commit 1bee14d

Please sign in to comment.