Files
sqlpage--sqlpage/sqlpage/templates
olivierauverlot eaee6987d8 New RSS component (#252)
* Produces a data flow in the RSS format

* add documentation and rss reference

* more complete rss component, with support for podcasts

* podcast changes

* documentation

* format dates as rfc2822

* extract template helpers

* extract more helpers

* remove unnecassary error handling

* fmt

* two-param helpers

* rfc2822_date_helper

* test rfc date formatter

* accept dates with or without time

* remove unneeded line breaks

---------

Co-authored-by: Olivier Auverlot <oauv@duck.com>
Co-authored-by: lovasoa <pere.jobs@gmail.com>
2024-03-05 19:42:44 +01:00
..
2024-02-03 15:44:44 +01:00
2024-01-29 13:07:32 +05:30
2022-08-28 01:04:10 +02:00
2023-11-06 01:35:21 +01:00
2024-03-05 19:42:44 +01:00
2024-02-24 19:23:13 +01:00
2024-03-05 19:42:44 +01:00
2024-02-25 19:09:06 +01:00

SQLPage component templates

SQLPage templates are handlebars1 files that are used to render the results of SQL queries.

Default components

SQLPage comes with a set of default2 components that you can use without having to write any code. These are documented on https://sql.ophir.dev/components.sql

Custom components

You can write your own component templates and place them in the sqlpage/templates directory. To override a default component, create a file with the same name as the default component. If you want to start from an existing component, you can copy it from the sqlpage/templates directory in the SQLPage source code2 .