{"id":16101622,"url":"https://github.com/bjansen/pebble-intellij","last_synced_at":"2025-04-06T12:10:45.693Z","repository":{"id":15879504,"uuid":"78885057","full_name":"bjansen/pebble-intellij","owner":"bjansen","description":"Pebble support for IntelliJ IDEA","archived":false,"fork":false,"pushed_at":"2025-03-27T21:33:07.000Z","size":1448,"stargazers_count":90,"open_issues_count":20,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T11:08:37.624Z","etag":null,"topics":["android-studio","intellij","intellij-plugin","pebble-templates","templating"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/bjansen.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":"2017-01-13T20:42:16.000Z","updated_at":"2025-03-27T20:08:54.000Z","dependencies_parsed_at":"2025-02-28T14:17:10.351Z","dependency_job_id":"a2cab3c5-8473-4703-94fd-81f14ec87649","html_url":"https://github.com/bjansen/pebble-intellij","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjansen%2Fpebble-intellij","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjansen%2Fpebble-intellij/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjansen%2Fpebble-intellij/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjansen%2Fpebble-intellij/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bjansen","download_url":"https://codeload.github.com/bjansen/pebble-intellij/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478324,"owners_count":20945266,"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":["android-studio","intellij","intellij-plugin","pebble-templates","templating"],"created_at":"2024-10-09T18:50:29.749Z","updated_at":"2025-04-06T12:10:45.671Z","avatar_url":"https://github.com/bjansen.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IntelliJ plugin for Pebble [![Gitter](https://badges.gitter.im/bjansen/pebble-intellij.svg)](https://gitter.im/bjansen/pebble-intellij) [![GitHub Actions](https://github.com/bjansen/pebble-intellij/workflows/Java%20CI/badge.svg?branch=master)](https://github.com/bjansen/pebble-intellij/actions) [![GitHub release](https://img.shields.io/github/release/bjansen/pebble-intellij.svg)](https://plugins.jetbrains.com/plugin/9407-pebble) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=pebble-intellij\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=pebble-intellij)\n\nThis plugin provides support for the [Pebble templating engine](https://github.com/PebbleTemplates/pebble) in \nIntelliJ IDEA 2017.3 and later.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/bjansen/pebble-intellij/raw/master/images/plugin.png\" \n       width=\"594\" alt=\"IntelliJ plugin for Pebble\"/\u003e\n\u003cp\u003e\n\n## Features\n\n* parser/lexer\u003csup\u003e1\u003c/sup\u003e and syntax highlighter (supports custom delimiters)\n* live templates for built-in tags\n* braces matching, code folding and commenting\n* quote handler\n* navigation (methods and fields, included files)\n* code completion\n* highlight unknown references\n* support for variables and functions introduced by [pebble-spring](https://github.com/PebbleTemplates/pebble/wiki/spring-integration)\n* [more to come](https://github.com/bjansen/pebble-intellij/issues?utf8=%E2%9C%93\u0026q=is%3Aissue%20is%3Aopen%20label%3At-feature)\n\n\u003csup\u003e1\u003c/sup\u003e: *Custom operators are currently not supported*.\n\n## Installation\n\nThis plugin is available in JetBrains' [plugin repository](https://plugins.jetbrains.com/idea/plugin/9407-pebble),\nfrom your IDE go to `Preferences \u003e Plugins` and enter `pebble` in the search bar.\n\n## Mixing Pebble and other languages\n\nTo make the editor recognize two languages in the same file, for example HTML \nand Pebble, go to `Preferences \u003e Languages \u0026 Frameworks \u003e Template Data Languages`\nand select the `HTML` data language on the directory that contains your Pebble\ntemplates:\n\n![Template data languages settings](images/settings.png)\n\nThis will enable features like syntax highlighting, code completion, navigation,\nEmmet expansions etc.\n\n## Using code completion\n\nIn order to use code completion, you will have to let the plugin know what the type\nof `foo` is. This can be done using `@pebvariable` hints, much like in the JSP, FreeMarker\nand Velocity plugins:\n\n![Code completion](images/completion.png)\n\n`@pebvariable` hints can be easily added to templates via the `var` live template. They must\nfollow this syntax:\n\n    {# @pebvariable name=\"\u003cname\u003e\" type=\"\u003ctype\u003e\" #}\n\nFor code completion to work properly in the `type` attribute, your `.peb` files need to be placed\nunder a [content root](https://www.jetbrains.com/help/idea/content-roots.html) (e.g. `src/main/resources`).\nOtherwise, classes defined in your own source files won't be suggested.\n\n## Nightly builds\n\nSnapshot builds are available as part of the Actions CI:\n * go to https://github.com/bjansen/pebble-intellij/actions\n * click on the latest build\n * scroll to the bottom of the page, under the `Artifacts` section click on `pebble-intellij-development`\n * this will download a zip file that can be installed in your IDE using [Install plugin from disk](https://www.jetbrains.com/help/idea/managing-plugins.html#install_plugin_from_disk)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjansen%2Fpebble-intellij","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbjansen%2Fpebble-intellij","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjansen%2Fpebble-intellij/lists"}