{"id":47706579,"url":"https://github.com/sgruendel/prettier-plugin-jte","last_synced_at":"2026-04-02T18:00:23.362Z","repository":{"id":347596278,"uuid":"1194484325","full_name":"sgruendel/prettier-plugin-jte","owner":"sgruendel","description":"Prettier plugin for jte template files.","archived":false,"fork":false,"pushed_at":"2026-03-28T15:58:29.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-28T17:44:11.744Z","etag":null,"topics":["html","jte","prettier","prettier-plugin"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sgruendel.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-28T12:24:14.000Z","updated_at":"2026-03-28T15:58:32.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sgruendel/prettier-plugin-jte","commit_stats":null,"previous_names":["sgruendel/prettier-plugin-jte"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/sgruendel/prettier-plugin-jte","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgruendel%2Fprettier-plugin-jte","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgruendel%2Fprettier-plugin-jte/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgruendel%2Fprettier-plugin-jte/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgruendel%2Fprettier-plugin-jte/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sgruendel","download_url":"https://codeload.github.com/sgruendel/prettier-plugin-jte/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgruendel%2Fprettier-plugin-jte/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31312744,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["html","jte","prettier","prettier-plugin"],"created_at":"2026-04-02T18:00:17.597Z","updated_at":"2026-04-02T18:00:23.340Z","avatar_url":"https://github.com/sgruendel.png","language":"TypeScript","readme":"# prettier-plugin-jte\n\n[![CI](https://github.com/sgruendel/prettier-plugin-jte/actions/workflows/ci.yml/badge.svg)](https://github.com/sgruendel/prettier-plugin-jte/actions/workflows/ci.yml)\n[![Depfu](https://badges.depfu.com/badges/2d4a10b6819e6ab830a395d236f28051/overview.svg)](https://depfu.com/github/sgruendel/prettier-plugin-jte?project_id=70595)\n[![npm version](https://img.shields.io/npm/v/prettier-plugin-jte.svg)](https://www.npmjs.com/package/prettier-plugin-jte)\n\nPrettier plugin for formatting Java JTE templates with Prettier.\n\nThis plugin targets Java-style `.jte` files and formats JTE directives while delegating HTML layout to Prettier's HTML printer.\n\nIt supports:\n\n- `${...}` and `$unsafe{...}` expressions\n- `@if`, `@elseif`, `@else`, `@endif`\n- `@for`, `@else`, `@endfor`\n- `@import` and `@param`\n- `@template...(...)` calls\n- `!{...}` local Java code blocks\n- ``@`...` `` content blocks\n- `\u003c%-- ... --%\u003e` comments\n\nIt currently focuses on Java JTE syntax only. Kotlin `.kte` syntax is out of scope.\n\n## Install\n\n```bash\nnpm install --save-dev prettier prettier-plugin-jte\n```\n\n## Usage\n\nPrettier will pick up the plugin automatically when it is installed locally and the file extension is `.jte`.\n\nYou can also invoke it explicitly:\n\n```bash\nnpx prettier --write \"src/**/*.jte\" --parser jte\n```\n\nExample `.prettierrc`:\n\n```json\n{\n  \"plugins\": [\"prettier-plugin-jte\"]\n}\n```\n\n## Example\n\n```jte\n@import org.example.Page\n@param Page page\n\n@if(page.getDescription() != null)\n    \u003cmeta name=\"description\" content=\"${page.getDescription()}\"\u003e\n@endif\n\n@template.layout.page(\n    page = page,\n    content = @`\n        \u003ch1\u003e${page.getTitle()}\u003c/h1\u003e\n    `\n)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgruendel%2Fprettier-plugin-jte","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsgruendel%2Fprettier-plugin-jte","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgruendel%2Fprettier-plugin-jte/lists"}