How to include css stylesheet to Mako template

1.9k Views Asked by At

I am using Mako templae engine for python. I want to add css stylesheet in my document, but I have no idea how to do that. Any help?

2

There are 2 best solutions below

2
On
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>

Make sure href points to your CSS file (and in the correct directory)

Taken straight from W3Schools. There is nothing special about Mako templates, they just help you build up dynamic html.

1
On

Mako docs for include

<%include file="some_css_you_want_to_include.css" />