This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Import lit-html functions | |
import {html, render, directive, NodePart, createMarker} from 'lit-html'; | |
// duplicate directive takes a single value, and renders it in the DOM twice | |
const duplicate = directive((value) => { | |
let part1; | |
let part2; | |
const createAndAppendPart = (containerPart) => { | |
// create markers surrounding content managed by the new part |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
@license | |
Copyright (c) 2016 The Polymer Project Authors. All rights reserved. | |
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt | |
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | |
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt | |
Code distributed by Google as part of the polymer project is also | |
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt | |
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="components/polymer/polymer.html"> | |
<polymer-element name="dynamic-element" attributes="description"> | |
<template> | |
<style> | |
:host { | |
display: block; | |
} | |
</style> | |
<p>I'm {{description}}, now!</p> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Launch Titanium Studio. | |
2. Click **Help** > **Install New Software**. | |
3. In the **Work with** field, enter the update URL for the package you want to install | |
and press <Enter>. The update URLs are: | |
* PHP - http://download.appcelerator.com/aptana/studio3/php/update/stable | |
* Ruby - http://download.appcelerator.com/aptana/studio3/ruby/update/stable | |
* Pydev - http://download.appcelerator.com/aptana/studio3/pydev/update/stable | |
4. In the **Available Software** dialog, select the checkbox next to the package name and click **Next**. |