• Stars
    star
    103
  • Rank 333,046 (Top 7 %)
  • Language
    Java
  • Created over 12 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

jade4j spring integration

Build Status

Attention: spring-jade4j is now spring-pug4j

In alignment with the javascript template engine we renamed spring-jade4j to spring-pug4j. You will find it under https://github.com/neuland/spring-pug4j

Please report spring-pug4j issues in the new repository.

A Spring Integration for Jade4J

See neuland/jade4j for more information.

Bean Declarations

applicationContext.xml

<bean id="templateLoader" class="de.neuland.jade4j.spring.template.SpringTemplateLoader">
	<property name="basePath" value="/WEB-INF/views/" />
</bean>

<bean id="jadeConfiguration" class="de.neuland.jade4j.JadeConfiguration">
	<property name="prettyPrint" value="false" />
	<property name="caching" value="false" />
	<property name="templateLoader" ref="templateLoader" />
</bean>

<bean id="viewResolver" class="de.neuland.jade4j.spring.view.JadeViewResolver">
	<property name="configuration" ref="jadeConfiguration" />
	<!-- rendering nice html formatted error pages for development -->
	<property name="renderExceptions" value="true" />
</bean>

Or, if you are using Spring JavaConfig:

@Configuration
public class JadeConfig {

	@Bean
	public SpringTemplateLoader templateLoader() {
		SpringTemplateLoader templateLoader = new SpringTemplateLoader();
		templateLoader.setBasePath("/WEB-INF/views/");
		templateLoader.setEncoding("UTF-8");
		templateLoader.setSuffix(".jade");
		return templateLoader;
	}

	@Bean
	public JadeConfiguration jadeConfiguration() {
		JadeConfiguration configuration = new JadeConfiguration();
		configuration.setCaching(false);
		configuration.setTemplateLoader(templateLoader());
		return configuration;
	}

	@Bean
	public ViewResolver viewResolver() {
		JadeViewResolver viewResolver = new JadeViewResolver();
		viewResolver.setConfiguration(jadeConfiguration());
		return viewResolver;
	}
}

Usage

via Maven

As of release 0.4.0 we changed maven hosting to sonatype. using Github Maven Repository is no longer required

Please be aware that we had to change the group id from 'de.neuland' to 'de.neuland-bfi' in order to meet sonatype conventions for group naming.

Just add following dependency definitions to your pom.xml.

<dependency>
  <groupId>de.neuland-bfi</groupId>
  <artifactId>spring-jade4j</artifactId>
  <version>1.3.1</version>
</dependency>

Author

License

The MIT License

Copyright (C) 2012-2019 neuland Büro für Informatik, Bremen, Germany

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

micro-frontends

extending the microservice paradigms to web development
JavaScript
4,420
star
2

jade4j

a pug implementation written in Java (formerly known as jade)
Java
704
star
3

pug4j

a pug implementation written in Java (formerly known as jade)
Java
45
star
4

tractor-store-blueprint

tractor store blueprint. plain. no dependencies.
JavaScript
23
star
5

firefly

Java
10
star
6

matterminder

A reminder integration for Mattermost
Scala
9
star
7

IntellijHybrisPlugin

Java
8
star
8

assertj-logging

Easy assertj logging assertions
Java
7
star
9

micro-frontends-workshop

JavaScript
6
star
10

blueprint-ddd-hex-spring-boot

Blueprint für ein DDD Projekt im Hexagon mit Spring Boot
Java
5
star
11

vertikalisierung

Eine Webseite, die vertikale Systemschnitte anhand der Customer Journey motiviert.
5
star
12

persistent-privacy

Make the protection/encryption of personal data easier when storing it using jackson or spring-data
Java
5
star
13

jade4j-coffeescript-filter

A CoffeeScript Filter for Jade4J
Java
5
star
14

spring-pug4j

pug4j spring integration
Java
4
star
15

multigit

Perl wrapper for easily multiplying git commands to a selection of configured repositories.
Perl
4
star
16

kafka-bridge

Publish Kafka messages from HTTP
Java
4
star
17

hac

hybris Administrator Console
Groovy
3
star
18

tractor-store-preact

preact implementation. jsx templates. universal rendering.
JavaScript
3
star
19

banditenlabor

Banditenlabor
Jupyter Notebook
2
star
20

bandwhichd-server

Scala
2
star
21

azure-devops-dashboard

Dashboard for Azure DevOps displaying stuff that's not already availble on a single page
TypeScript
2
star
22

FreemarkerValidatorTask

an Ant task that validates your Freemarker Templates
Java
2
star
23

bandwhichd-ui

TypeScript
1
star