mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-14 03:25:40 +00:00
static pages are rendered and cached
This commit is contained in:
@@ -20,19 +20,13 @@ use sailfish::TemplateOnce;
|
||||
|
||||
#[derive(TemplateOnce, Clone)]
|
||||
#[template(path = "panel/site-keys/index.html")]
|
||||
pub struct IndexPage<'a> {
|
||||
pub name: &'a str,
|
||||
pub title: &'a str,
|
||||
}
|
||||
pub struct IndexPage;
|
||||
|
||||
const TITLE: &str = "Add Site Key";
|
||||
const PAGE: &str = "SiteKeys";
|
||||
|
||||
impl<'a> Default for IndexPage<'a> {
|
||||
impl Default for IndexPage {
|
||||
fn default() -> Self {
|
||||
IndexPage {
|
||||
name: "mCaptcha",
|
||||
title: TITLE,
|
||||
}
|
||||
IndexPage
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user