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.



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.

If you want to use the {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

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -