ResSpec failure on data-include

I have an older ReSpec source file that used to work (with the dap v1 respec) but is now failing badly, perhaps something broke or I am not aware of a new call protocol or maybe I'm missing something obvious

I have a table entry of the form:

<td data-include='files/abc.xml' data-oninclude='updateExample'></td>

updateExample is defined as

function updateExample(doc, content) {
       // perform transformations to make it render and prettier
       return '<pre class="sh_xml">' + doc._esc(content) + '</pre>';
     }

currently it looks like this processing is not happening.

Safari error console agrees, "WARN: call to updateExample() failed with TypeError: 'undefined' is not a function (evaluating 'doc._esc(content)')

Do data-include and data-oninclude still work in the latest release?

Any URL available for looking at the latest documentation, apart from looking at the git source which isn't so readable?

thanks

regards, Frederick

Frederick Hirsch
Nokia

Received on Monday, 8 April 2013 20:26:32 UTC