!! I have to import images, css. Is there a simple way to access the context-path?

Yes, the context-path is exposed by default to all templates as a variable called contextPath. Just prepend it to your links, like for example: $contextPath/img/mylogo.jpg See [default exposed values] for more details.