Welcome to the Java Hypertext Preprocessor (JHP) documentation!
- Introduction - Overview and quick start
- Installation - How to install and set up JHP
- Getting Started - Your first JHP template
- Quick Reference - Syntax cheat sheet
- Template Syntax - Learn the template language
- Control Structures - If statements, loops, and includes
- Functions - Built-in and custom functions
- Context & Variables - Working with data
- Configuration - Settings and options
- Advanced Usage - Performance, threading, and patterns
- API Reference - Complete API documentation
- Examples - Real-world examples
- GitHub Repository: java-hypertext-preprocessor
- Issue Tracker: Report bugs and request features
- Discussions: Ask questions and share ideas
Settings settings = Settings.builder()
.base("/path/to/templates")
.build();
FunctionLibrary lib = new FunctionLibrary();
JhpEngine engine = new JhpEngine(settings, lib);
Context ctx = new Context();
ctx.add("name", "World");
String output = engine.render("hello.jhp", ctx);- Check the API Reference for detailed class documentation
- Browse Examples for common use cases
- Review Advanced Usage for best practices