{"id":1372,"date":"2013-07-18T22:07:01","date_gmt":"2013-07-18T22:07:01","guid":{"rendered":"http:\/\/wiki.davelevy.info\/?p=1372"},"modified":"2025-09-23T13:43:53","modified_gmt":"2025-09-23T13:43:53","slug":"snipsnap-and-the-html-macro","status":"publish","type":"post","link":"https:\/\/davelevy.info\/wiki\/snipsnap-and-the-html-macro\/","title":{"rendered":"Snipsnap and the &#8216;html&#8217; macro"},"content":{"rendered":"<p>One of the add on features contributed&nbsp; by the community <a title=\"the HTML macro at Snipsnap.org\" href=\"http:\/\/snipsnap.org\/comments\/mfranken\/HTMLMacro\">to the snipsnap project was an {html} macro<\/a>. Here are my notes,<!--more--><\/p>\n<p>This was article was originally published on my snipsnap site, and I have enclosed the macro as <a title=\"my snipsnap mirror, link to a tarball.\" href=\"http:\/\/davelevy.info\/mirror\/snipsnap\/index.html\">part of my mirror site<\/a>.<\/p>\n<blockquote><p>I need to check if it made it to the github repo.<\/p><\/blockquote>\n<p>This is tightly bound to snipsnap and the article was written when I was actively using it. The remainder of this article relates to the use cases I put it to.<\/p>\n<p style=\"text-align: center;\">ooOOOoo<\/p>\n<p>It escaped the enclosed code and rendered it in raw HTML. The snipsnap macro defintion syntax was to use the embraced keyword twice, so {html}&lt;strong&gt;Important!&lt;\/strong&gt;{html}<\/p>\n<p>I used it to include the google map widgets, the delicious tag cloud widget, getsatisfaction, which worked, see below, and Disqus which <span style=\"text-decoration: underline;\">broke the backup<\/span>. One of its most important extensibility features, as you can see above was it allowed <em>Javascript<\/em>.<\/p>\n<p>The Disqus bug was because the backup format was XML, and snipsnap struggled with recursive <strong>CDATA<\/strong> elements. The Disqus scripts held CDATA elements, which snipsnap tried to enclose in the same tags. This failed on important.<\/p>\n<p>I have also used this technique to get sharethis, addthis, flickr badges and pictures, wordle and big huge labs web badge to work. ( I think that&#8217;s it).<\/p>\n<p>It was useful if you wanted, needed, additional parameters beyond those available in the snipsnap img macro.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the add on features contributed&nbsp; by the community to the snipsnap project was an {html} macro. Here are my notes,<\/p>\n","protected":false},"author":1,"featured_media":7593,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_share_on_mastodon":"0"},"categories":[20,27,3],"tags":[917,465,462,464,253,463,322,29,920,911],"class_list":["post-1372","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-admin","category-software","category-technology","tag-admin","tag-disqus","tag-extensibility","tag-getsatisfaction","tag-html","tag-html-macro","tag-javascript","tag-snipsnap","tag-software","tag-technology"],"share_on_mastodon":{"url":"","error":""},"jetpack_featured_media_url":"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2013\/07\/snipsnap4creativiely-w1480.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/1372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/comments?post=1372"}],"version-history":[{"count":9,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/1372\/revisions"}],"predecessor-version":[{"id":7591,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/1372\/revisions\/7591"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media\/7593"}],"wp:attachment":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media?parent=1372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/categories?post=1372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/tags?post=1372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}