There's a linebreak issue I've experienced in Express.js when rendering one slab file.
I have yet to test in browser.
If my layout slab is:
{slab layout}
<!doctype html>
<html>
<head>
<title></title>
</head>
<body>
{body}
</body>
</html>
{endslab}
The output is:
<!doctype html>
<html>
<head>
<title></title>
</head>
<body>
{body}
</body>
</html>
I'm not sure what the issue is, but its fixed with:
{slab layout}<!doctype html>
<html>
<head>
<title></title>
</head>
<body>
{body}
</body>
</html>{endslab}
There's a linebreak issue I've experienced in Express.js when rendering one slab file.
I have yet to test in browser.
If my layout slab is:
{slab layout} <!doctype html> <html> <head> <title></title> </head> <body> {body} </body> </html> {endslab}The output is:
I'm not sure what the issue is, but its fixed with:
{slab layout}<!doctype html> <html> <head> <title></title> </head> <body> {body} </body> </html>{endslab}