fix type cast
This commit is contained in:
parent
380d50be43
commit
b780d35db1
@ -187,7 +187,7 @@ export default class ViewEngine extends LifecycleUnit {
|
|||||||
// Generate the partial name.
|
// Generate the partial name.
|
||||||
// This is done by taking the relative path from the partials dir, removing the suffix,
|
// This is done by taking the relative path from the partials dir, removing the suffix,
|
||||||
// and replacing directory separators with the standard : identifier.
|
// and replacing directory separators with the standard : identifier.
|
||||||
let partial_name = entry.path.replace(partials_path, '').slice(0, -1 * (this.get_file_extension()).length)
|
let partial_name = entry.path.replace(partials_path.to_local, '').slice(0, -1 * (this.get_file_extension()).length)
|
||||||
if ( partial_name.startsWith('/') ) partial_name = partial_name.slice(1)
|
if ( partial_name.startsWith('/') ) partial_name = partial_name.slice(1)
|
||||||
partial_name = partial_name.replace(/\//g, ':')
|
partial_name = partial_name.replace(/\//g, ':')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user