jaseemkp / embeddedjavascript

Automatically exported from code.google.com/p/embeddedjavascript
Other
0 stars 0 forks source link

'type' option hard-coded for 'element' type #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. var tmpl = new EJS({element:document.getElementById('identification'), 
type:'<'})
2. tmpl.update('something', obj);
3. the un-parsed source of #identification is inserted into #something

What is the expected output? What do you see instead?
the actual parsed template

What version of the product are you using? On what operating system?
latest svn trunk

Please provide any additional information below.
change line 57 of ejs.js on trunk to this:

        this.type = options.type || '['

from this:

        this.type = '['

I use this so i can do 

<script type="template/ejs">
</script>

so i don't have to escape anything in my templates.  better than a pre or area 
tag

:-)

thanks

Original issue reported on code.google.com by aaron.bl...@gmail.com on 25 Jun 2010 at 4:35