duckduckgo/p5-app-duckpan — pull request #16 by moollaza (2013-10-01 21:40:15+00:00)
Title: Zaahir/dpserver goodie support

cc @nospampleasemam @yegg @russellholt

Added Goodie support to DuckPAN. Not sure if this is the cleanest way to do it..

Essentially what I've done is expanded on my method of injecting Spice Handlebars templates into script tags, but this time if its a Goodie result, I inject its `html` or `answer` into a script tag. Then the `spice2_duckpan_compile.js` checks for that script tag, and if it exists, injects the contents of the tag, into the `zero_click_abstract` div after unhiding it.

I'm not particularly proud about lines 291 - 307, not sure if there's a better way of handling that though.