{"id":22354008,"url":"https://github.com/movableink/ember-cli-handlebars-inline-precompile","last_synced_at":"2025-03-26T12:28:31.729Z","repository":{"id":57223319,"uuid":"57910355","full_name":"movableink/ember-cli-handlebars-inline-precompile","owner":"movableink","description":"Precompiled Handlebars templates for Ember (a corollary to ember-cli-htmlbars-inline-precompile)","archived":false,"fork":false,"pushed_at":"2018-05-31T00:49:25.000Z","size":159,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":43,"default_branch":"master","last_synced_at":"2025-03-05T04:20:03.748Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/movableink.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-02T18:11:48.000Z","updated_at":"2016-11-11T19:43:36.000Z","dependencies_parsed_at":"2022-08-24T15:41:44.772Z","dependency_job_id":null,"html_url":"https://github.com/movableink/ember-cli-handlebars-inline-precompile","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/movableink%2Fember-cli-handlebars-inline-precompile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/movableink%2Fember-cli-handlebars-inline-precompile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/movableink%2Fember-cli-handlebars-inline-precompile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/movableink%2Fember-cli-handlebars-inline-precompile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/movableink","download_url":"https://codeload.github.com/movableink/ember-cli-handlebars-inline-precompile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245653009,"owners_count":20650615,"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":[],"created_at":"2024-12-04T13:10:47.823Z","updated_at":"2025-03-26T12:28:31.707Z","avatar_url":"https://github.com/movableink.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-cli-handlebars-inline-precompile [![Build Status](https://travis-ci.org/movableink/ember-cli-handlebars-inline-precompile.svg?branch=master)](https://travis-ci.org/movableink/ember-cli-handlebars-inline-precompile)\n\nUsed for precompiling static Handlebar templates for use in generating templates. This is **not** intended for use in Ember's rendering engine!\n\n**If you want a Babel 6 compatible version, use the latest commit on the `ember2-14` branch**\n\n## Usage\n\nThis addon will transpile tagged templates into Handlebars templates. From there, these templates can be invoked as a function with a context, just like any other Handlebars template.\n\n```javascript\nimport Ember from 'ember';\nimport hbs from 'handlebars-inline-precompile';\n\nconst { computed, get } = Ember;\n\nexport default Ember.Object.extend({\n  fontSize: 12,\n\n  sections: []\n\n  template: hbs`\n    \\documentclass[{{fontSize}}pt]{article}\n    \\begin{document}\n\n    {{#each sections as |section|}}\n      {{{section.latex}}}\n    {{/each}}\n\n    \\end{document}\n  `,\n\n  latex: computed({\n    get() {\n      return get(this, 'template')(this);\n    }\n  }).volatile()\n});\n```\n\nThis object represents a LaTeX document, which can be serialized into\nit's raw form using a declarative template. This addon supports Ember\nObjects in properties, which means computed properties are accessible\nby a property declaration in your Handlebars.\n\n## Installation\n\n* `git clone` this repository\n* `npm install`\n* `bower install`\n\n## Running\n\n* `ember server`\n* Visit your app at http://localhost:4200.\n\n## Running Tests\n\n* `npm test` (Runs `ember try:testall` to test your addon against multiple Ember versions)\n* `ember test`\n* `ember test --server`\n\n## Building\n\n* `ember build`\n\nFor more information on using ember-cli, visit [http://ember-cli.com/](http://ember-cli.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmovableink%2Fember-cli-handlebars-inline-precompile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmovableink%2Fember-cli-handlebars-inline-precompile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmovableink%2Fember-cli-handlebars-inline-precompile/lists"}