user3746695
user3746695

Reputation:

Add script in comment on Pug

How to add script in comment on Pug ? I have two script to include on my web page :

<!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->

Upvotes: 0

Views: 540

Answers (1)

Matthew
Matthew

Reputation: 962

See this page in the pug docs

Pug does not have any special syntax for conditional comments. But since all lines beginning with < are treated as plain text, normal HTML style conditional comments will do fine.

So you can just use standard html for your conditional comments

Upvotes: 1

Related Questions