Skip to content

Commit 2d7d258

Browse files
committed
add support for custom js and css in shell
1 parent 7f374b2 commit 2d7d258

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sqlpage/templates/shell.handlebars

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,22 @@
88
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/[email protected]/tabler-icons.min.css"
99
integrity="sha384-a8pgu0eDAmHMVlQuzUEoHyapgzLXfOaTTNrMzPivsvAts7LkllyAYpRE4saDWQj7" crossorigin="anonymous">
1010

11+
{{#each (to_array css)}}
12+
<link rel="stylesheet" href="{{this}}">
13+
{{/each}}
14+
1115
{{#if font}}
1216
<link rel="preconnect" href="https://fonts.googleapis.com">
1317
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
1418
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family={{font}}&display=fallback">
1519
<style>:root { --tblr-font-sans-serif: '{{font}}', Arial, sans;}</style>
1620
{{/if}}
21+
1722
<script src="{{static_path 'sqlpage.js'}}" defer></script>
23+
{{#each (to_array javascript)}}
24+
<script src="{{this}}" defer></script>
25+
{{/each}}
26+
1827
<meta name="viewport" content="width=device-width, initial-scale=1"/>
1928
<meta name="description" content="{{description}}"/>
2029
{{#if norobot}}

0 commit comments

Comments
 (0)