lib: added the eqString helper function for templates.

The "eq" function was added in Go 1.3, so it's not available in 1.1 and 1.2,
versions that I claim to support. Therefore, I've added this simple "eqString"
function that will do the job.