{"id":18384846,"url":"https://github.com/allegro/handlebars-spring-boot-starter","last_synced_at":"2025-04-12T21:33:49.997Z","repository":{"id":29699630,"uuid":"33242387","full_name":"allegro/handlebars-spring-boot-starter","owner":"allegro","description":"Spring Boot auto-configuration for Handlebars","archived":false,"fork":false,"pushed_at":"2025-03-03T00:11:39.000Z","size":403,"stargazers_count":111,"open_issues_count":5,"forks_count":26,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-04T01:09:19.437Z","etag":null,"topics":["hacktoberfest","handlers","spring-boot","spring-boot-starter"],"latest_commit_sha":null,"homepage":"","language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/allegro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-04-01T10:49:00.000Z","updated_at":"2025-02-05T00:16:48.000Z","dependencies_parsed_at":"2022-09-06T20:51:41.208Z","dependency_job_id":"625629bc-6442-496a-8303-cbcefaac7ddb","html_url":"https://github.com/allegro/handlebars-spring-boot-starter","commit_stats":null,"previous_names":["allegro/spring-boot-starter-handlebars"],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allegro%2Fhandlebars-spring-boot-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allegro%2Fhandlebars-spring-boot-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allegro%2Fhandlebars-spring-boot-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allegro%2Fhandlebars-spring-boot-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allegro","download_url":"https://codeload.github.com/allegro/handlebars-spring-boot-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248636261,"owners_count":21137409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","handlers","spring-boot","spring-boot-starter"],"created_at":"2024-11-06T01:15:39.276Z","updated_at":"2025-04-12T21:33:49.964Z","avatar_url":"https://github.com/allegro.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"Spring Boot Starter Handlebars\n====\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/allegro/handlebars-spring-boot-starter/gradle.yml)](https://github.com/allegro/handlebars-spring-boot-starter/actions/workflows/gradle.yml)\n[![Coverage Status](https://coveralls.io/repos/allegro/handlebars-spring-boot-starter/badge.svg)](https://coveralls.io/r/allegro/handlebars-spring-boot-starter)\n![Maven Central](https://img.shields.io/maven-central/v/pl.allegro.tech.boot/handlebars-spring-boot-starter.svg)\n\nSpring Boot Starter support for\n[Handlebars.java](https://github.com/jknack/handlebars.java)\n(logic-less templates).\n\n## Usage\n\nAdd `handlebars-spring-boot-starter` as dependency:\n```gradle\nrepositories {\n    mavenCentral()\n}\n\ndependencies {\n    compile 'pl.allegro.tech.boot:handlebars-spring-boot-starter:$version'\n}\n```\n\n## Requirements\n\nSince version 0.5.0 handlebars-spring-boot-starter requires Spring Boot 3, Spring Framework 6 and Java 17.\n\n## Helpers\n\nSpring Boot Starter Handlebars will automatically register handlebars helpers based on project dependencies.\nAdd any handlebars helper to dependencies and you can start using it.\n```gradle\ndependencies {\n    compile 'com.github.jknack:handlebars-helpers:4.4.0',\n            'com.github.jknack:handlebars-jackson:4.4.0'\n}\n```\nNOTE: JacksonHelper will register with name `json`.\nEvery other helper will register with its default name.\n\nMore information about available helpers can be found on\n[Handlebars.java](https://github.com/jknack/handlebars.java#helpers).\n\n### Custom helpers\n\nTo register a custom helper use [@HandlebarsHelper](src/main/java/pl/allegro/tech/boot/autoconfigure/handlebars/HandlebarsHelper.java) annotation.\n\n#### Example\n```java\n@HandlebarsHelper\npublic class CustomHelper {\n    CharSequence foo() {\n        return 'bar'\n    }\n}\n```\nMore information about how to create custom helpers can be found on [Using a HelperSource](https://github.com/jknack/handlebars.java#using-a-helpersource)\n\n## Configuration\n\nProperties space is: `handlebars`. All basic properties of\n[AbstractTemplateViewResolverProperties.java](http://docs.spring.io/autorepo/docs/spring-boot/current/api/org/springframework/boot/autoconfigure/template/AbstractTemplateViewResolverProperties.html)\nare available.\n\nDefault configuration:\n```yaml\nhandlebars.enabled: true\nhandlebars.prefix: classpath:templates/\nhandlebars.suffix: .hbs\nhandlebars.cache: true\nhandlebars.registerMessageHelper: true\nhandlebars.failOnMissingFile: false\nhandlebars.bindI18nToMessageSource: false\nhandlebars.prettyPrint: false\nhandlebars.infiniteLoops: false\n```\nNOTE: `handlebars-guava-cache` is used as template cache implementation.\n\n`resolver` configuration allows on/off available handlebars value resolvers.\nHere goes default configuration:\n```yaml\nhandlebars.resolver.javaBean: true\nhandlebars.resolver.map: true\nhandlebars.resolver.method: false\nhandlebars.resolver.field: false\n```\nMore information about value resolvers can be found on\n[Using the ValueResolver](https://github.com/jknack/handlebars.java#using-the-valueresolver).\n\n### Custom cache template\n\nSet handlebars template cache by `@Bean` of type [TemplateCache](https://github.com/jknack/handlebars.java/blob/master/handlebars/src/main/java/com/github/jknack/handlebars/cache/TemplateCache.java).\n\n### Custom template loader\n\nSet handlebars template loader by `@Bean` of type [TemplateLoader](https://github.com/jknack/handlebars.java/blob/master/handlebars/src/main/java/com/github/jknack/handlebars/io/TemplateLoader.java).\n\n## License\n\n**handlebars-spring-boot-starter** is published under [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallegro%2Fhandlebars-spring-boot-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallegro%2Fhandlebars-spring-boot-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallegro%2Fhandlebars-spring-boot-starter/lists"}