Skip to content

CSS Files and Elementary #38

Answered by sliemeobn
nonfungibletunji asked this question in Q&A
Discussion options

You must be logged in to vote

if you include it in an "inline" style tag, be sure to wrap the content in an HTMLRaw.
otherwise elementary will html-escape your text (ie: escape out &<>)

if you already have a css file, it is probably better to use something link(.href("/path-to-your.css"), .rel(.stylesheet)) and a file middleware for better caching.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sliemeobn
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants