yapplabs / ember-head

Fastboot-compatible component for rendering content into <head>

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ember-head

This addon gives you a component for rendering content into <head>. It works in both the browser and in fastboot. This makes it ideal for things like Opengraph and Twitter Cards.

{{#in-head}}
  <meta property="og:title" content="Babies">
  <meta property="og:description" content="Learn the shocking truth.">
  <meta property="og:image" content="https://example.com/example.jpg">
{{/in-head}}

You can put the above into any template, and as long as it stays rendered, the content will stay in the <head>.

Installation

ember install ember-head

About

Fastboot-compatible component for rendering content into <head>

License:MIT License


Languages

Language:JavaScript 83.5%Language:HTML 15.4%Language:Handlebars 1.1%