( tmpl, data )
| 11 | }; |
| 12 | |
| 13 | var R = function ( tmpl, data ) { |
| 14 | try { |
| 15 | return jQuery.tmpl( tmpl, data ).text(); |
| 16 | } |
| 17 | catch ( e ) { |
| 18 | if ( typeof e === 'string' ) { |
| 19 | return 'ERROR: ' + e; |
| 20 | } |
| 21 | return e; |
| 22 | } |
| 23 | }; |
| 24 | |
| 25 | function test_handler( test_name, res, exp ) { |
| 26 | var is_err = ($.isFunction(exp) && exp.prototype instanceof Error); |