boxlang-runtime-spring-boot

Integrate BoxLang as a view engine in Spring Boot applications.

16|78|Updated Nov 28, 2014
One-click install
npx skills add https://github.com/ortus-docs/coldbox-docs --skill boxlang-runtime-spring-boot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: boxlang-runtime-spring-boot
Source: https://github.com/ortus-docs/coldbox-docs/tree/main/.agents/skills/boxlang-runtime-spring-boot
Command: npx skills add https://github.com/ortus-docs/coldbox-docs --skill boxlang-runtime-spring-boot

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Seamless integration of BoxLang as the view engine for Spring Boot applications, removing boilerplate and enabling direct template rendering.

Core Features & Use Cases

  • Zero-configuration setup via auto-configuration to render BoxLang templates from controllers.
  • View resolution that maps logical view names to classpath:/templates/<name>.bxm and direct access to Spring Model attributes in BoxLang templates.
  • Compatible with Spring Boot 3.x, BoxLang 1.11.0+, and JDK 21+ for modern environments.

Quick Start

Add the BoxLang Spring Boot starter dependency to enable auto-configuration and render .bxm templates.

Frequently Asked Questions about boxlang-runtime-spring-boot

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use BoxLang as a view engine in Spring Boot?

You can use BoxLang as a view engine in Spring Boot by adding the BoxLang starter dependency, which provides auto-configuration to render .bxm templates directly from your controllers without manual setup.

What do I need to configure to render BoxLang templates in a Spring Boot application?

No manual configuration is required. The auto-configuration wires BoxLangAutoConfiguration, BoxLangViewResolver, and a BoxRuntime singleton to map logical view names to classpath:/templates/<name>.bxm automatically.

Does the BoxLang Spring Boot integration support access to model attributes in templates?

Yes, the integration provides direct access to Spring Model attributes within BoxLang templates, allowing controllers to pass data seamlessly to the .bxm view layer for rendering.

What Java and Spring Boot versions are required for the BoxLang view resolver?

You need Spring Boot 3.x, BoxLang 1.11.0 or higher, and JDK 21 or above to use the BoxLang view resolver and ensure compatibility with modern runtime environments.

How do I eliminate boilerplate when integrating a custom template engine with Spring Boot?

Using the BoxLang Spring Boot starter eliminates integration boilerplate through zero-configuration auto-configuration, directly wiring the runtime and view resolver to handle template rendering automatically.

Can I use BoxLang for templating in an existing Spring Boot 3.x project?

Yes, you can integrate BoxLang templating into an existing Spring Boot 3.x project by adding the starter dependency, which auto-configures the view resolver to process .bxm files from your classpath templates.