- Add `wasm`, `wasm-clean`, and `install-emscripten` phony targets to Makefile for WebAssembly cross-compilation - Insert `WREN_PROFILE_ENTER`/`WREN_PROFILE_EXIT` macros in `wren_vm.h` and `wren_vm.c` to support optional runtime profiling via `WREN_PROFILE_ENABLED` - Create `example/os_demo.wren` demonstrating Platform, Process, and conditional exit usage - Update `example/regex_demo.wren` to import `Match` and exercise Match object properties, groups, and `matchAll` - Remove static HTML manual pages (`base64.html`, `dns.html`, `json.html`) and replace with structured `manual_src/` directory containing Jinja2 templates, YAML metadata, and content pages - Expand `README.md` with build targets table, manual building instructions, source layout, and guide for adding new module documentation
83 lines
2.3 KiB
HTML
83 lines
2.3 KiB
HTML
{# retoor <retoor@molodetz.nl> #}
|
|
|
|
{% macro method_signature(name, params=[], returns=None, arrow='→') %}
|
|
<div class="method-signature">
|
|
<span class="method-name">{{ name }}</span>({% for p in params %}<span class="param">{{ p }}</span>{% if not loop.last %}, {% endif %}{% endfor %}){% if returns %} {{ arrow }} <span class="type">{{ returns }}</span>{% endif %}
|
|
</div>
|
|
{% endmacro %}
|
|
|
|
{% macro property_signature(name, returns=None, arrow='→') %}
|
|
<div class="method-signature">
|
|
<span class="method-name">{{ name }}</span>{% if returns %} {{ arrow }} <span class="type">{{ returns }}</span>{% endif %}
|
|
</div>
|
|
{% endmacro %}
|
|
|
|
{% macro admonition(type, content, title=None) %}
|
|
<div class="admonition {{ type }}">
|
|
<div class="admonition-title">{{ title or type|title }}</div>
|
|
<p>{{ content }}</p>
|
|
</div>
|
|
{% endmacro %}
|
|
|
|
{% macro code_block(code, lang="wren") %}
|
|
<pre><code>{{ code }}</code></pre>
|
|
{% endmacro %}
|
|
|
|
{% macro class_header(name, description=None) %}
|
|
<div class="class-header">
|
|
<h3>{{ name }}</h3>
|
|
{% if description %}<p>{{ description }}</p>{% endif %}
|
|
</div>
|
|
{% endmacro %}
|
|
|
|
{% macro param_list(params) %}
|
|
<ul class="param-list">
|
|
{% for p in params %}
|
|
<li><span class="param-name">{{ p.name }}</span> <span class="param-type">({{ p.type }})</span> - {{ p.description }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endmacro %}
|
|
|
|
{% macro toc(items) %}
|
|
<div class="toc">
|
|
<h4>On This Page</h4>
|
|
<ul>
|
|
{% for item in items %}
|
|
<li><a href="#{{ item.anchor }}">{{ item.title }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endmacro %}
|
|
|
|
{% macro card_grid(cards) %}
|
|
<div class="card-grid">
|
|
{% for card in cards %}
|
|
<div class="card">
|
|
<h3><a href="{{ card.href }}">{{ card.title }}</a></h3>
|
|
<p>{{ card.description }}</p>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endmacro %}
|
|
|
|
{% macro module_grid(modules) %}
|
|
<div class="module-grid">
|
|
{% for m in modules %}
|
|
<a href="{{ m.href }}" class="module-card">{{ m.name }}</a>
|
|
{% endfor %}
|
|
</div>
|
|
{% endmacro %}
|
|
|
|
{% macro data_table(headers, rows) %}
|
|
<table>
|
|
<tr>{% for h in headers %}<th>{{ h }}</th>{% endfor %}</tr>
|
|
{% for row in rows %}
|
|
<tr>{% for cell in row %}<td>{{ cell|safe }}</td>{% endfor %}</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% endmacro %}
|
|
|
|
{% macro example_output(output) %}
|
|
<div class="example-output">{{ output }}</div>
|
|
{% endmacro %}
|