comparison service/arduinoNode/static/output-widgets.html @ 173:0daa8cbbd8f6

handle compact/full uris better, but still not always right Ignore-this: 10d98f16a659f899528eb86411473b18
author drewp@bigasterisk.com
date Fri, 17 Apr 2015 02:00:15 -0700
parents 4d2df276baae
children fc5fdcc3ed4a
comparison
equal deleted inserted replaced
172:715c1c42185e 173:0daa8cbbd8f6
1 <link rel="import" href="/lib/polymer/0.5.2/core-ajax/core-ajax.html"> 1 <link rel="import" href="/lib/polymer/0.5.2/core-ajax/core-ajax.html">
2 2
3 <polymer-element name="output-widget" attributes="subj pred"> 3 <polymer-element name="output-widget" attributes="subj pred">
4 <template> 4 <template>
5 <core-ajax id="output" url="../output" method="POST"></core-ajax> 5 <core-ajax id="output" url="../output" method="POST"></core-ajax>
6 Set this device's {{pred}} to 6 Set this device's {{pred | compactUri}} to
7 </template> 7 </template>
8 <script> 8 <script>
9 function ntriple(s, p, o) { 9 function ntriple(s, p, o) {
10 // incomplete 10 // incomplete
11 o = o.replace('\n', '\\n'); 11 o = o.replace('\n', '\\n');