This CoffeeNet starter is dedicated to provide a simple and easy way to integrate the CoffeeNet web navigation behaviour with javascript as your rendering engine.
This is a module in the starter set, so you first need to declare your project
as a child of the starter parent
by editing the pom.xml
file.
<parent>
<groupId>rocks.coffeenet</groupId>
<artifactId>coffeenet-starter-parent</artifactId>
<version>${parent.version}</version>
<relativePath />
</parent>
Now you can enable the javascript navigation bar in your project, by first adding the dependency:
<dependency>
<groupId>rocks.coffeenet</groupId>
<artifactId>coffeenet-starter-navigation-javascript</artifactId>
</dependency>
In order to get everything up and running there are some requirements that your project must fulfill.
Just add the html snipped listed below:
<html lang="en">
<head>
<!-- Your header stuff here -->
</head>
<body>
<!-- CoffeeNet header -->
<header id="coffeenet-header"></header>
<!-- Your html here -->
<script src="/webjars/navigation-bar/bundle.min.js"></script>
<!-- Your scripts here -->
</body>
</html>
see the navigation configuration in the starter navigation readme