api, frontend: use triple square brackets for templating
This commit is contained in:
parent
7e4fcb20a6
commit
781aeca6bb
@ -108,7 +108,7 @@ func initStaticRouter(router *mux.Router) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
t, err := template.New(page).Delims("<<<", ">>>").Parse(string(contents))
|
t, err := template.New(page).Delims("[[[", "]]]").Parse(string(contents))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Errorf("cannot parse %s%s template: %v", os.Getenv("STATIC"), file, err)
|
logger.Errorf("cannot parse %s%s template: %v", os.Getenv("STATIC"), file, err)
|
||||||
return err
|
return err
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<script src="<<<.CdnPrefix>>>/js/jquery.js"></script>
|
<script src="[[[.CdnPrefix]]]/js/jquery.js"></script>
|
||||||
<script src="<<<.CdnPrefix>>>/js/vue.js"></script>
|
<script src="[[[.CdnPrefix]]]/js/vue.js"></script>
|
||||||
<script src="<<<.CdnPrefix>>>/js/highlight.js"></script>
|
<script src="[[[.CdnPrefix]]]/js/highlight.js"></script>
|
||||||
<script src="<<<.CdnPrefix>>>/js/chartist.js"></script>
|
<script src="[[[.CdnPrefix]]]/js/chartist.js"></script>
|
||||||
<script src="<<<.CdnPrefix>>>/js/dashboard.js"></script>
|
<script src="[[[.CdnPrefix]]]/js/dashboard.js"></script>
|
||||||
<link rel="stylesheet" href="<<<.CdnPrefix>>>/css/chartist.css">
|
<link rel="stylesheet" href="[[[.CdnPrefix]]]/css/chartist.css">
|
||||||
<link rel="stylesheet" href="<<<.CdnPrefix>>>/css/dashboard.css">
|
<link rel="stylesheet" href="[[[.CdnPrefix]]]/css/dashboard.css">
|
||||||
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700|Source+Sans+Pro:200,300,400,700" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700|Source+Sans+Pro:200,300,400,700" rel="stylesheet">
|
||||||
<title>Commento: Dashboard</title>
|
<title>Commento: Dashboard</title>
|
||||||
</head>
|
</head>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta name="viewport" content="user-scalable=no, initial-scale=1.0">
|
<meta name="viewport" content="user-scalable=no, initial-scale=1.0">
|
||||||
<script src="<<<.CdnPrefix>>>/js/jquery.js"></script>
|
<script src="[[[.CdnPrefix]]]/js/jquery.js"></script>
|
||||||
<script src="<<<.CdnPrefix>>>/js/forgot.js"></script>
|
<script src="[[[.CdnPrefix]]]/js/forgot.js"></script>
|
||||||
<link rel="stylesheet" href="<<<.CdnPrefix>>>/css/auth.css">
|
<link rel="stylesheet" href="[[[.CdnPrefix]]]/css/auth.css">
|
||||||
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700|Source+Sans+Pro:200,300,400,700" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700|Source+Sans+Pro:200,300,400,700" rel="stylesheet">
|
||||||
<title>Commento: Reset your Password</title>
|
<title>Commento: Reset your Password</title>
|
||||||
</head>
|
</head>
|
||||||
@ -29,5 +29,5 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<<<.Footer>>>
|
[[[.Footer]]]
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta name="viewport" content="user-scalable=no, initial-scale=1.0">
|
<meta name="viewport" content="user-scalable=no, initial-scale=1.0">
|
||||||
<script src="<<<.CdnPrefix>>>/js/jquery.js"></script>
|
<script src="[[[.CdnPrefix]]]/js/jquery.js"></script>
|
||||||
<script src="<<<.CdnPrefix>>>/js/login.js"></script>
|
<script src="[[[.CdnPrefix]]]/js/login.js"></script>
|
||||||
<link rel="stylesheet" href="<<<.CdnPrefix>>>/css/auth.css">
|
<link rel="stylesheet" href="[[[.CdnPrefix]]]/css/auth.css">
|
||||||
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700|Source+Sans+Pro:200,300,400,700" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700|Source+Sans+Pro:200,300,400,700" rel="stylesheet">
|
||||||
<title>Commento: Login</title>
|
<title>Commento: Login</title>
|
||||||
</head>
|
</head>
|
||||||
@ -47,5 +47,5 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<<<.Footer>>>
|
[[[.Footer]]]
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<script src="<<<.CdnPrefix>>>/js/jquery.js"></script>
|
<script src="[[[.CdnPrefix]]]/js/jquery.js"></script>
|
||||||
<script src="<<<.CdnPrefix>>>/js/logout.js"></script>
|
<script src="[[[.CdnPrefix]]]/js/logout.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta name="viewport" content="user-scalable=no, initial-scale=1.0">
|
<meta name="viewport" content="user-scalable=no, initial-scale=1.0">
|
||||||
<script src="<<<.CdnPrefix>>>/js/jquery.js"></script>
|
<script src="[[[.CdnPrefix]]]/js/jquery.js"></script>
|
||||||
<script src="<<<.CdnPrefix>>>/js/reset.js"></script>
|
<script src="[[[.CdnPrefix]]]/js/reset.js"></script>
|
||||||
<link rel="stylesheet" href="<<<.CdnPrefix>>>/css/auth.css">
|
<link rel="stylesheet" href="[[[.CdnPrefix]]]/css/auth.css">
|
||||||
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700|Source+Sans+Pro:200,300,400,700" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700|Source+Sans+Pro:200,300,400,700" rel="stylesheet">
|
||||||
<title>Commento: Reset your Password</title>
|
<title>Commento: Reset your Password</title>
|
||||||
</head>
|
</head>
|
||||||
@ -37,5 +37,5 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<<<.Footer>>>
|
[[[.Footer]]]
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta name="viewport" content="user-scalable=no, initial-scale=1.0">
|
<meta name="viewport" content="user-scalable=no, initial-scale=1.0">
|
||||||
<script src="<<<.CdnPrefix>>>/js/jquery.js"></script>
|
<script src="[[[.CdnPrefix]]]/js/jquery.js"></script>
|
||||||
<script src="<<<.CdnPrefix>>>/js/signup.js"></script>
|
<script src="[[[.CdnPrefix]]]/js/signup.js"></script>
|
||||||
<link rel="stylesheet" href="<<<.CdnPrefix>>>/css/auth.css">
|
<link rel="stylesheet" href="[[[.CdnPrefix]]]/css/auth.css">
|
||||||
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700|Source+Sans+Pro:200,300,400,700" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700|Source+Sans+Pro:200,300,400,700" rel="stylesheet">
|
||||||
<title>Commento: Signup</title>
|
<title>Commento: Signup</title>
|
||||||
</head>
|
</head>
|
||||||
@ -59,5 +59,5 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<<<.Footer>>>
|
[[[.Footer]]]
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user