Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-handlebars-inline-precompile

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-handlebars-inline-precompile

Compile handlebars templates for use in Ember apps. These templates are for generating static HTML

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by50%
Maintainers
2
Weekly downloads
 
Created
Source

ember-cli-handlebars-inline-precompile Build Status

Used for precompiling static Handlebar templates for use in generating templates. This is not intended for use in Ember's rendering engine!

Usage

This 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.

import Ember from 'ember';
import hbs from 'handlebars-inline-precompile';

const { computed, get } = Ember;

export default Ember.Object.extend({
  fontSize: 12,

  sections: []

  template: hbs`
    \documentclass[{{fontSize}}pt]{article}
    \begin{document}

    {{#each sections as |section|}}
      {{{section.latex}}}
    {{/each}}

    \end{document}
  `,

  latex: computed({
    get() {
      return get(this, 'template')(this);
    }
  }).volatile()
});

This object represents a LaTeX document, which can be serialized into it's raw form using a declarative template. This addon supports Ember Objects in properties, which means computed properties are accessible by a property declaration in your Handlebars.

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://ember-cli.com/.

Keywords

FAQs

Package last updated on 16 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc