Unknown strange syntax

Hi guys. So recently I have been playing around with yacy the p2p search engine. I came across this strange syntax in their html pages looks like some type of include, am not sure exactly what it does (or what language it is). here’s the code.

<!-- type the number of results and navigation bar -->
#(num-results)#
	::
	<p>No Results.</p>
	::
	<p>No Results. (length of search words must be at least 1 character)</p>
	::
	<div id="results"></div>
    <div class="progress">
      <div class="progress-bar progress-bar-info" id="progressbar" role="progressbar" style="width:0%;">
        <span style="position:absolute;display:block;text-align:left;width:100%;color:black;">&nbsp;&nbsp;&nbsp;<strong id="offset">#[offset]#</strong>-<strong id="itemscount">#[itemscount]#</strong> of <strong id="totalcount">#[totalcount]#</strong> #(globalresults)#::; (<strong id="localResourceSize">#[localResourceSize]#</strong> local, <strong id="remoteResourceSize">#[remoteResourceSize]#</strong> remote), <strong id="remoteIndexCount">#[remoteIndexCount]#</strong> from <strong id="remotePeerCount">#[remotePeerCount]#</strong> remote YaCy peers.#(/globalresults)#</span>
      </div>
    </div>
	::
	<p>Searching the web with this peer is disabled for unauthorized users. Please <a href="Status.html?login=">log in</a> as administrator to use the search function</p>
#(/num-results)#
#(urlmaskerror)#::
<p><b>Illegal URL mask:</b> <i>#[urlmask]#</i> (not a valid regular expression), mask ignored.</p>
#(/urlmaskerror)#
#(prefermaskerror)#::
<p><b>Illegal prefer mask:</b> <i>#[prefermask]#</i> (not a valid regular expression), mask ignored.</b></p>
#(/prefermaskerror)#
#(didYouMean)#::
<p><b>Did you mean:</b> #{suggestions}# <a href="#[url]#">#[word]#</a> #[sep]##{/suggestions}#</p>
#(/didYouMean)#
#(searchagain)#`

What does the #(somename)# syntax do? please help.

EDIT
This post has been reformatted by enclosing the code block in 3 backticks
```
on their own lines.

I guess this software uses some kind of templating engine (maybe its own) and these tags just show where to place variables values in the HMTL template.

PS: found some docs on this: http://www.yacy-websuche.de/wiki/index.php/Dev:Templates

Thanks that really helped out…

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.