Closed vbulant closed 7 years ago
What about adding asset paths (/css, gfx/svg, …) to the config.js and then injecting it into the templates so that we can reuse the paths instead of hardcoding them?
Before: <link rel="stylesheet" href="css/main.css"> After: <link rel="stylesheet" href="{{ _cssPath }}/main.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="{{ _cssPath }}/main.css">
It’s nothing too important coz we don’t change the paths often, but it seems somehow right to me.
What about adding asset paths (/css, gfx/svg, …) to the config.js and then injecting it into the templates so that we can reuse the paths instead of hardcoding them?
Before:
<link rel="stylesheet" href="css/main.css">
After:<link rel="stylesheet" href="{{ _cssPath }}/main.css">
It’s nothing too important coz we don’t change the paths often, but it seems somehow right to me.