Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2708543
mod.rs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
451 B
Referenced Files
None
Subscribers
None
mod.rs
View Options
use
pmc
::
config
;
use
tera
::
Tera
;
pub
fn
create_templates
()
->
(
Tera
,
String
)
{
let
mut
tera
=
Tera
::
default
();
let
path
=
config
::
read
().
get_path
();
tera
.
add_raw_templates
(
vec!
[
(
"view"
,
include_str!
(
"dist/view.html"
)),
(
"login"
,
include_str!
(
"dist/login.html"
)),
(
"dashboard"
,
include_str!
(
"dist/index.html"
)),
])
.
unwrap
();
return
(
tera
,
path
.
trim_end_matches
(
'/'
).
to_string
());
}
pub
mod
assets
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 1, 11:21 PM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
490515
Default Alt Text
mod.rs (451 B)
Attached To
Mode
rPMC Process Management Controller
Attached
Detach File
Event Timeline
Log In to Comment