{"id":29926660,"url":"https://github.com/ecomfe/sublime-etpl","last_synced_at":"2025-08-02T12:43:06.406Z","repository":{"id":36245571,"uuid":"40549931","full_name":"ecomfe/sublime-etpl","owner":"ecomfe","description":"An ETPL syntax definition \u0026 snippets specifically for Sublime Text.","archived":false,"fork":false,"pushed_at":"2015-12-31T04:09:30.000Z","size":78,"stargazers_count":12,"open_issues_count":0,"forks_count":4,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-05-25T08:05:22.563Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/ecomfe.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-11T15:30:42.000Z","updated_at":"2019-10-05T09:54:12.000Z","dependencies_parsed_at":"2022-08-17T22:25:26.438Z","dependency_job_id":null,"html_url":"https://github.com/ecomfe/sublime-etpl","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/ecomfe/sublime-etpl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Fsublime-etpl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Fsublime-etpl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Fsublime-etpl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Fsublime-etpl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ecomfe","download_url":"https://codeload.github.com/ecomfe/sublime-etpl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Fsublime-etpl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268392180,"owners_count":24243297,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-08-02T12:42:29.324Z","updated_at":"2025-08-02T12:43:06.371Z","avatar_url":"https://github.com/ecomfe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sublime ETPL\n===\n\nAn ETPL syntax definition \u0026 snippets specifically for Sublime Text.\n\n## About ETPL\n\n[ETPL](http://ecomfe.github.io/etpl/) is a reusable, flexible, high-performance JavaScript template engine for Browser \u0026 Node.\n\n## Screenshot\n\n_Default_ syntax \u0026 `base16-ocean.dark.tmTheme`:\n\n\u003cimg width=\"865\" alt=\"Base 16 Ocean\" src=\"https://cloud.githubusercontent.com/assets/157338/9528527/7a85d9d4-4d27-11e5-8ffa-ace601bebf6f.png\"\u003e\n\n_Mustache style_ syntax \u0026 `Tomorrow.tmTheme`:\n\n\u003cimg width=\"865\" alt=\"Tomorrow\" src=\"https://cloud.githubusercontent.com/assets/157338/9528567/c515dcf6-4d27-11e5-936b-1e47e994dee5.png\"\u003e\n\n## Install\n\n### Get it through Git\n\nClone the repository in your Sublime Text `Packages` directory:\n\n    git clone https://github.com/ecomfe/sublime-etpl.git ETPL\n\nThe `Packages` directory is located at:\n\n* Sublime Text 3\n    * OS X: `~/Library/Application Support/Sublime Text 3/Packages/`\n    * Linux: `~/.Sublime Text 3/Packages/`\n    * Windows: `%APPDATA%/Sublime Text 3/Packages/`\n* Sublime Text 2\n    * OS X: `~/Library/Application Support/Sublime Text 2/Packages/`\n    * Linux: `~/.Sublime Text 2/Packages/`\n    * Windows: `%APPDATA%/Sublime Text 2/Packages/`\n\n### Get it through Sublime Package Control\n\nIf you haven't used it yet, just install it from the link above and then:\n\n1. Press \u003ckbd\u003eShift\u003c/kbd\u003e + \u003ckbd\u003eCommand\u003c/kbd\u003e (or \u003ckbd\u003eCtrl\u003c/kbd\u003e) + \u003ckbd\u003eP\u003c/kbd\u003e\n2. Type `install`, to bring up the \"Package Control: Install Package\" option, and press \u003ckbd\u003eEnter\u003c/kbd\u003e\n3. Look for `ETPL`, and press \u003ckbd\u003eEnter\u003c/kbd\u003e to install it.\n\n## Settings\n\nGo to `Preferences` \u003e `Package Settings` \u003e `ETPL` \u003e `Settings - User`, insert \u0026 override the following JSON snippet:\n\n```json\n{\n    \"commandOpen\": \"\u003c!--\",\n    \"commandClose\": \"--\u003e\",\n    \"variableOpen\": \"${\",\n    \"variableClose\": \"}\"\n}\n```\n\n## Usage\n\n### Comments\n\nKey bindings for `\u003c!-- // ETPL_COMMENTS --\u003e`:\n\n* OS X: \u003ckbd\u003eCommand\u003c/kbd\u003e + \u003ckbd\u003e/\u003c/kbd\u003e\n* Linux/Windows: \u003ckbd\u003eCtrl\u003c/kbd\u003e + \u003ckbd\u003e/\u003c/kbd\u003e\n\n### Snippets\n\n* `target:` + \u003ckbd\u003eTab\u003c/kbd\u003e → `\u003c!-- target: TARGET_NAME(master = MASTER_NAME) --\u003e`\n* `block:` + \u003ckbd\u003eTab\u003c/kbd\u003e → `\u003c!-- block: BLOCK_NAME --\u003e ... \u003c!-- /block --\u003e`\n* `import:` + \u003ckbd\u003eTab\u003c/kbd\u003e → `\u003c!-- import: TARGET_NAME --\u003e`\n* `use:` + \u003ckbd\u003eTab\u003c/kbd\u003e → `\u003c!-- use: TARGET_NAME(ASSIGNMENT_EXPRESSIONS) --\u003e`\n* `var:` + \u003ckbd\u003eTab\u003c/kbd\u003e → `\u003c!-- var: VAR_NAME = EXPRESSION --\u003e`\n* `for:` + \u003ckbd\u003eTab\u003c/kbd\u003e → `\u003c!-- for: VARIABLE as ITEM, KEY_OR_INDEX --\u003e ... \u003c!-- /for --\u003e`\n* `if:` + \u003ckbd\u003eTab\u003c/kbd\u003e → `\u003c!-- if: CONDITIONAL_EXPRESSION --\u003e ... \u003c!-- /if --\u003e`\n* `elif:` + \u003ckbd\u003eTab\u003c/kbd\u003e → `\u003c!-- elif: CONDITIONAL_EXPRESSION --\u003e`\n* `else:` + \u003ckbd\u003eTab\u003c/kbd\u003e → `\u003c!-- else --\u003e`\n* `filter:` + \u003ckbd\u003eTab\u003c/kbd\u003e → `\u003c!-- filter: FILTER_NAME(ARGUMENTS) --\u003e ... \u003c!-- /filter --\u003e`\n\n## Related\n\n* ETPL: [Website](http://ecomfe.github.io/etpl/), [GitHub](https://github.com/ecomfe/etpl)\n\n## Contributors\n\n* Firede: [GitHub](https://github.com/firede), [Weibo](http://weibo.com/firede)\n* huanghuiquan: [GitHub](https://github.com/huanghuiquan)\n\n## License\n\nMIT \u0026copy; [Baidu Inc.](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecomfe%2Fsublime-etpl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecomfe%2Fsublime-etpl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecomfe%2Fsublime-etpl/lists"}