{"library":"prettier-plugin-jte","title":"prettier-plugin-jte","description":"A Prettier plugin (v1.2.0) for formatting Java JTE template files. Compatible with Prettier ^3.0.0 and maintained by the JTE community. Supports JTE expressions, directives (@if, @for, @import, @param, @template calls), content blocks, and HTML formatting via Prettier's HTML printer. Actively developed with monthly releases. Differentiates from generic template formatters by understanding JTE-specific syntax and preserving whitespace semantics.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-jte"],"cli":null},"imports":["plugins: ['prettier-plugin-jte']","import plugin from 'prettier-plugin-jte'","import type { Plugin } from 'prettier'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# Install as a dev dependency\nnpm install --save-dev prettier prettier-plugin-jte\n\n# Create or update .prettierrc\ncat > .prettierrc << 'EOF'\n{\n  \"plugins\": [\"prettier-plugin-jte\"]\n}\nEOF\n\n# Format a JTE file\nnpx prettier --write \"src/main/resources/**/*.jte\"\n\n# Example input file: src/main/resources/template.jte\n# @import org.example.Page\n# @param Page page\n#\n# @if(page.getDescription() != null)\n#     <meta name=\"description\" content=\"${page.getDescription()}\">\n# @endif\n#\n# After formatting, the file gets consistent indentation and spacing.","lang":"javascript","description":"Installs the plugin, adds it to Prettier config, and formats a JTE template file with Prettier.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}