jspf header:
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
<title>Serendipity Book Shop</title>
</head>
Partial jsp code:
<div id="indexLeftColumn">
<div class="categoryBox">
<a href="#"><span class="categoryLabelText">Science Fiction</span></a>
</div>
...
</div>
I would like to split assets/css/style.css and create partial css and include it as css blocks into their respective html files.
In Django I used to do:
{% block css %} ... {% endblock %}
The only way that I found is to use style inside the html body:
<style> ... </style>
Is there a better way doing it?