javascript - Excluding Layouts in express but keeping CSS -
I'm unable to find a way to exclude my layout in Express. I tried to do the
response .Redder ("index", {layout: wrong}};
But for that page CSS What is the best way to disable the layout but to keep the CSS?
In addition to this, I use the
app. Static ("public");
and my CSS is in the public folder.
This is happening because your layout is CSS. Try to create a layout with code to include your CSS and anything like:
/ * For this example use handler templates / / lt; link rel = "stylesheet" type = "text / css" href = "styles.css" /> {{{body}}}
This will include only CSS and then display your content.
If you want to use the
Yours The code containing the CSS is
{{body}}}
is the code to insert your content.
It is not possible to include CSS without layout, as long as your content is not in it. {layout: false}
then the code contained in the CSS ( & lt; link rel = "stylesheet" type = "text / css "Href =" styles.css "/ & gt;
) should be in your content
Comments
Post a Comment