Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

HTML

build a categories list to build a pullContent query

1
2
3
4
5
6
7
#foreach($cat in $newsCategories)
    #if($velocityCount == 1)
         #set($catlist = "+c${cat}c:on")
    #else
         #set($catlist = "$query +c${cat}c:on")
    #end
#end
https://snipt.net/embed/88b7bf5ed47d30f6df62abe5b225008e/
https://snipt.net/raw/88b7bf5ed47d30f6df62abe5b225008e/
88b7bf5ed47d30f6df62abe5b225008e
html
HTML
8
2016-12-08T06:31:56
True
False
False
/api/public/snipt/20247/
build-a-categories-to-build-a-pull
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>#foreach($cat in $newsCategories) </span><span id="L-2"><a name="L-2"></a> #if($velocityCount == 1) </span><span id="L-3"><a name="L-3"></a> #set($catlist = &quot;+c${cat}c:on&quot;) </span><span id="L-4"><a name="L-4"></a> #else </span><span id="L-5"><a name="L-5"></a> #set($catlist = &quot;$query +c${cat}c:on&quot;) </span><span id="L-6"><a name="L-6"></a> #end </span><span id="L-7"><a name="L-7"></a>#end </span></pre></div> </td></tr></table>
velocity

Text only

Rx simple slot w/ parameters

#slot($slotname "<ul>" "<li>" "</li>" "</ul>" "sitepath=${sitepath}&folderpath=${folderpath}")##
https://snipt.net/embed/ce3fec9309e03816bc3d19a0c4c6e515/
https://snipt.net/raw/ce3fec9309e03816bc3d19a0c4c6e515/
ce3fec9309e03816bc3d19a0c4c6e515
text
Text only
1
2016-12-04T09:57:49
True
False
False
/api/public/snipt/19691/
rx-simple-slot-w-parameters
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>#slot($slotname &quot;&lt;ul&gt;&quot; &quot;&lt;li&gt;&quot; &quot;&lt;/li&gt;&quot; &quot;&lt;/ul&gt;&quot; &quot;sitepath=${sitepath}&amp;folderpath=${folderpath}&quot;)## </span></pre></div> </td></tr></table>
rhythmyx, velocity, vtl

Text only

Inbound Turk Job

$reviewedHit.updateCatalogGroupAttribute("returned_content", "main_content")
https://snipt.net/embed/6760fa21542a7a21ed199ae043562e25/
https://snipt.net/raw/6760fa21542a7a21ed199ae043562e25/
6760fa21542a7a21ed199ae043562e25
text
Text only
1
2016-12-07T03:45:38
True
False
False
/api/public/snipt/1613/
inbound-turk-job
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>$reviewedHit.updateCatalogGroupAttribute(&quot;returned_content&quot;, &quot;main_content&quot;) </span></pre></div> </td></tr></table>
"mechanical turk", mturk, velocity
Copyrighted, illegal, or inappropriate content? Email [email protected].