File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 2424 {{ #if refresh }}
2525 <meta http-equiv =" refresh" content =" {{ refresh }} " >
2626 {{ /if }}
27+ <meta name =" generator" content =" SQLPage" />
2728</head >
2829
2930<body class =" layout-boxed" >
6970 {{ ~#each_row ~}} {{ ~/each_row ~}}
7071 </main >
7172</div >
73+ <div class =" w-100 text-center fs-6 my-2 text-secondary" >
74+ {{ #if footer }}
75+ {{{ markdown footer }}}
76+ {{ else }}
77+ <!-- You can change this footer using the 'footer' parameter of the 'shell' component -->
78+ Built with <a class =" text-reset" href =" https://sql.ophir.dev" title =" SQLPage v{{ buildinfo ' CARGO_PKG_VERSION' }} " >SQLPage</a >
79+ {{ /if }}
80+ </div >
7281</body >
7382</html >
Original file line number Diff line number Diff line change @@ -234,6 +234,15 @@ impl AllTemplates {
234234 ) ;
235235 handlebars. register_helper ( "markdown" , Box :: new ( markdown_helper) ) ;
236236
237+ handlebars_helper ! ( buildinfo_helper: |x: str |
238+ match x {
239+ "CARGO_PKG_NAME" => env!( "CARGO_PKG_NAME" ) ,
240+ "CARGO_PKG_VERSION" => env!( "CARGO_PKG_VERSION" ) ,
241+ _ => "!!unknown buildinfo key!!"
242+ }
243+ ) ;
244+ handlebars. register_helper ( "buildinfo" , Box :: new ( buildinfo_helper) ) ;
245+
237246 let mut this = Self {
238247 handlebars,
239248 split_templates : FileCache :: new ( ) ,
You can’t perform that action at this time.
0 commit comments