File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ title : Stapy
3+ homepage : https://www.stapy.net
4+ language :
5+ - Python
6+ license :
7+ - BSD-2-Clause
8+ templates :
9+ - HTML
10+ description : A Static Site Generator that can generate a Website without a command line.
11+ ---
12+ # Presentation
13+
14+ Stapy works with Python on any operating system without additional packages.
15+
16+ Download the last release archive, extract it and launch the server to start editing the website.
17+
18+ - A Windows user can serve and build a site without a command line.
19+ - Generate the site for multiple environments: production, development, preview...
20+ - Page data is stored in JSON format.
21+ - Include variables and blocks anywhere with simple template syntax.
22+ - Plugins allow to write Python code for rendering blocks.
23+ - You are free to use the frontend technologies you like!
24+
25+ # Templating
26+
27+ ``` html
28+ <!-- Display var -->
29+ {{ title }}
30+
31+ <!-- Include block -->
32+ {% block.header %}
33+
34+ <!-- Include block with arguments -->
35+ {% block.author firstname:"John" lastname:"Doe" %}
36+
37+ <!-- Include block with specific page data -->
38+ {% block.article + blog/my-first-post.html %}
39+
40+ <!-- Loop on block with JSON query -->
41+ {% block.article ~ tags:post date:desc 1:10 %}
42+
43+ <!-- Plugin rendering -->
44+ {: date.current_date format:"%m/%d/%Y %H:%M" :}
45+ ```
You can’t perform that action at this time.
0 commit comments