parser: fix (absolute path) error (#12747)
parent
f60cf65284
commit
c29a3cf6e8
|
@ -161,8 +161,12 @@ fn (mut p Parser) comptime_call() ast.ComptimeCall {
|
|||
path += '.html'
|
||||
path = os.real_path(path)
|
||||
if !is_html {
|
||||
if os.is_abs_path(tmpl_path) {
|
||||
path = tmpl_path
|
||||
} else {
|
||||
path = os.join_path_single(dir, tmpl_path)
|
||||
}
|
||||
}
|
||||
if !os.exists(path) {
|
||||
if is_html {
|
||||
// can be in `templates/`
|
||||
|
|
Loading…
Reference in New Issue