create-caspian-app 1.8.0 → 1.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,43 +1,41 @@
1
- from casp.component_decorator import html
2
- from casp.layout import Metadata
3
-
4
- # Root defaults, inherited by every page unless overridden. A page title can be
5
- # formatted for the whole app with `title_template="%s | My App"`.
6
- metadata = Metadata(description="Powered by Caspian Framework")
7
-
8
-
9
- def layout():
10
- return html(r"""
11
- <!DOCTYPE html>
12
- <html lang="{{ current_locale() }}">
13
-
14
- <head>
15
- <meta charset="UTF-8" />
16
- <meta name="viewport"
17
- content="width=device-width, initial-scale=1.0" />
18
- <title>{{ metadata.title | default("Caspian App") }}</title>
19
- {#
20
- Description, canonical, robots, keywords, Open Graph, Twitter, and every
21
- `Metadata(extra={...})` entry. Each tag carries `data-pp-meta` so SPA
22
- navigation replaces the set for the next page.
23
- #}
24
- {{ metadata_tags(metadata | default({})) }}
25
- <link rel="icon"
26
- href="/favicon.ico"
27
- type="image/x-icon"
28
- sizes="16x16" />
29
- <link href="/css/styles.css" rel="stylesheet" />
30
- <script type="module" src="/js/main.js"></script>
31
- </head>
32
-
33
- <body style="
34
- opacity: 0;
35
- pointer-events: none;
36
- user-select: none;
37
- transition: opacity 0.18s ease-out;
38
- ">
39
- <slot />
40
- </body>
41
-
42
- </html>
43
- """)
1
+ from casp.component_decorator import html
2
+ from casp.layout import Metadata
3
+
4
+ # Root defaults, inherited by every page unless overridden. A page title can be
5
+ # formatted for the whole app with `title_template="%s | My App"`.
6
+ metadata = Metadata(description="Powered by Caspian Framework")
7
+
8
+
9
+ def layout():
10
+ return html(r"""
11
+ <!DOCTYPE html>
12
+ <html lang="{{ current_locale() }}">
13
+
14
+ <head>
15
+ <meta charset="UTF-8" />
16
+ <meta name="viewport"
17
+ content="width=device-width, initial-scale=1.0" />
18
+ <title>{{ metadata.title | default("Caspian App") }}</title>
19
+ {#
20
+ Description, canonical, robots, keywords, Open Graph, Twitter, and every
21
+ `Metadata(extra={...})` entry. Each tag carries `data-pp-meta` so SPA
22
+ navigation replaces the set for the next page.
23
+ #}
24
+ {{ metadata_tags(metadata | default({})) }}
25
+ <link rel="icon"
26
+ href="/favicon.ico"
27
+ type="image/x-icon"
28
+ sizes="16x16" />
29
+ </head>
30
+
31
+ <body style="
32
+ opacity: 0;
33
+ pointer-events: none;
34
+ user-select: none;
35
+ transition: opacity 0.18s ease-out;
36
+ ">
37
+ <slot />
38
+ </body>
39
+
40
+ </html>
41
+ """)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-caspian-app",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "description": "Scaffold a new Caspian project (FastAPI-powered reactive Python framework).",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",