spring-jade4j

Spring interface to the Jade compiler

License

License

Categories

Categories

JADE General Purpose Libraries Utility
GroupId

GroupId

de.neuland-bfi
ArtifactId

ArtifactId

spring-jade4j
Last Version

Last Version

1.3.1
Release Date

Release Date

Type

Type

jar
Description

Description

spring-jade4j
Spring interface to the Jade compiler
Project URL

Project URL

https://github.com/neuland/spring-jade4j
Source Code Management

Source Code Management

https://github.com/neuland/spring-jade4j

Download spring-jade4j

How to add to project

<!-- https://jarcasting.com/artifacts/de.neuland-bfi/spring-jade4j/ -->
<dependency>
    <groupId>de.neuland-bfi</groupId>
    <artifactId>spring-jade4j</artifactId>
    <version>1.3.1</version>
</dependency>
// https://jarcasting.com/artifacts/de.neuland-bfi/spring-jade4j/
implementation 'de.neuland-bfi:spring-jade4j:1.3.1'
// https://jarcasting.com/artifacts/de.neuland-bfi/spring-jade4j/
implementation ("de.neuland-bfi:spring-jade4j:1.3.1")
'de.neuland-bfi:spring-jade4j:jar:1.3.1'
<dependency org="de.neuland-bfi" name="spring-jade4j" rev="1.3.1">
  <artifact name="spring-jade4j" type="jar" />
</dependency>
@Grapes(
@Grab(group='de.neuland-bfi', module='spring-jade4j', version='1.3.1')
)
libraryDependencies += "de.neuland-bfi" % "spring-jade4j" % "1.3.1"
[de.neuland-bfi/spring-jade4j "1.3.1"]

Dependencies

compile (6)

Group / Artifact Type Version
de.neuland-bfi : jade4j jar 1.3.1
org.springframework : spring-core jar 4.3.25.RELEASE
org.springframework : spring-web jar 4.3.25.RELEASE
org.springframework : spring-webmvc jar 4.3.25.RELEASE
commons-io : commons-io jar 2.4
org.slf4j : slf4j-api jar 1.6.6

provided (1)

Group / Artifact Type Version
javax.servlet : servlet-api jar 2.5

test (3)

Group / Artifact Type Version
org.slf4j : slf4j-log4j12 jar 1.6.6
org.springframework : spring-test jar 4.3.25.RELEASE
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

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.

de.neuland-bfi

neuland - Büro für Informatik

Versions

Version
1.3.1
1.3.0
1.2.7
1.2.6
1.2.5
1.2.3
1.2.1
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.10
1.0.8
1.0.7
1.0.4
0.4.2
0.4.0