mirror of
https://github.com/Open-Argon/http.ar.git
synced 2026-10-28 09:43:55 +00:00
fix broken templates, and change version
This commit is contained in:
1 parent
c0713ff6ee
commit
1d48d074cc
2 files changed
+5
-5
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"name": "http.ar",
|
||||
"version": "1.0.0"
|
||||
"version": "1.0.1"
|
||||
}
|
||||
@@ -5,8 +5,8 @@ let templates = {}
|
||||
|
||||
let templatesPath = path.join([program.cwd, "templates"])
|
||||
|
||||
let renderTemplate(path, values) = do
|
||||
if (path in templates && (not debug.inDebug)) return templates[path].render(values)
|
||||
let template = neon.template(path)
|
||||
if (not debug.inDebug) templates[path] = template
|
||||
let renderTemplate(document, values) = do
|
||||
if (path in templates && (not debug.inDebug)) return templates[document].render(values)
|
||||
let template = neon.template(path.join([templatesPath,document]))
|
||||
if (not debug.inDebug) templates[document] = template
|
||||
return template.render(values)
|
||||
Reference in new issue
Block a user