Skip to content

Instantly share code, notes, and snippets.

@ztl8702
Last active May 30, 2016 16:45
Show Gist options
  • Save ztl8702/142b563ad475287728bb597a5b6f5e7e to your computer and use it in GitHub Desktop.
Save ztl8702/142b563ad475287728bb597a5b6f5e7e to your computer and use it in GitHub Desktop.
test-polymer.html
<html>
<head>
<link rel="import" href="/libraries/bower_components/custom/node-element.html">
<script src="/modules/twig_polymer/vendor/webcomponentsjs/webcomponents-lite.min.js?v=1.x"></script>
</head>
<body>
<node-element url="/node/2">
<label>
<span property="schema:name" class="field field--name-title field--type-string field--label-hidden">Second article</span>
</label>
<authorname>
<span rel="schema:author" class="field field--name-uid field--type-entity-reference field--label-hidden">
<span lang="" about="/user/1" typeof="schema:Person" property="schema:name" datatype="">admin</span>
</span>
</authorname>
<date>
<span property="schema:dateCreated" content="2016-05-30T10:42:04+00:00" class="field field--name-created field--type-created field--label-hidden">Mon, 05/30/2016 - 10:42</span>
</date>
<maincontent>
<div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item">
<p>content of the 2nd article</p>
</div>
<div class="node__links">
<ul class="links inline">
<li class="node-readmore"><a href="/node/2" rel="tag" title="Second article" hreflang="en">Read more<span class="visually-hidden"> about Second article</span></a>
</li>
<li class="comment-forbidden"><a href="/user/login?destination=/node/2%23comment-form">Log in</a> or <a href="/user/register?destination=/node/2%23comment-form">register</a> to post comments</li>
</ul>
</div>
</maincontent>
</node-element>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment