User:SteveB > Sandbox

Sandbox

Page Revision #

{{  web.text(page.api, 'revisions/@count')  }}

100

XML Processing

{{ web.xml('<result><user ID="1">Name</user></result>')["user[@ID='1']"] }}

Name

Math.Formula

 

String.Match

{{ string.match("here is some text 123 with a number", "(\\d+)") }} 

123

DropDown Box

{{ dhtml.dropdown([ "first", "second", "third" ], [ ]) }}

Link that adds a marker to a map

{{ dhtml.link{text: "Click here", message: { address: '98051', label: 'Redmond, WA' }, publish: @location } }} 

{{ google.map{ subscribe: @location } }}  

Click here

Map with multiple markers

{{ google.map{ subscribe: @markers, zoom: 10 } }}

{{ pagebus.publish{ channel: @markers, message: { address: '98052', label: 'Redmond, WA' } } }}
{{ pagebus.publish{ channel: @markers, message: { address: 'Seattle, WA', label: 'Seattle, WA' } } }} 


Tag page
You must login to post a comment.
Powered by MindTouch Deki v.8.08.1a