Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

googlearchive/quick-element

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick Element

When you are writing a demo or a test for your Polymer app or component, it is sometimes nice to be able to add an element inline with the tests or demo implementation. Quick Element is a custom element that will help you to do this without resorting to using an HTML Import.

Usage

<!-- Declare an element called "x-greeter" -->
<template is="quick-element" name="x-greeter">
  <h1><span>{{greeting}}</span>, <content></content></h1>
</template>

<!-- Use "x-greeter" elsewhere in the document -->
<x-greeter greeting="Hello">World</x-greeter>
<x-greeter greeting="Live long and prosper">Dumbledore</x-greeter>

About

A simple template extension for defining Polymer-based custom elements in the main document. Useful for demos and tests. Make a quick-element today!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages