Metadata-Version: 2.3
Name: pelican-tabular
Version: 0.2.1
Summary: Pelican plugin to display data tables via a {% table %} shortcode.
Keywords: pelican,plugin,markdown,table,data
Author: Wei Lee
Author-email: Wei Lee <weilee.rx@gmail.com>
License: MIT
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Plugins
Classifier: Framework :: Pelican
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: pyyaml>=6.0
Requires-Dist: pelican>=4.5
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# pelican-tabular

Pelican plugin to embed data tables in Markdown articles via a `{% table %}` shortcode.

## Usage

```
{% table data/books.yaml %}
{% table data/books.yaml sort_by="rating" sort_order="desc" %}
{% table data/books.yaml hidden="year" fields="title,rating" %}
```

## Settings

| Setting | Default | Description |
|---|---|---|
| `TABULAR_SHORTCODE` | `"table"` | Shortcode name |
| `TABULAR_DATA_ROOT` | `"data"` | Data directory, relative to Pelican `PATH` |
| `TABULAR_FIELDS` | `[]` | Default field list (empty = auto-detect) |
| `TABULAR_FIELD_LABELS` | `{}` | Map of field key → display label |

## Data formats

Supports YAML (list of dicts), CSV, and JSON arrays.
