Memberkit will scan through your templates and changes all occurances of {...} tags. Memberkit tags look like javascript objects and sometimes our template engine can confuse this tags and may remove your Javascript codes from published site.
In order to prevent such errors, you should use {IGNORE} .... Ignored text ... {/IGNORE} tags. Memberkit template engine will ignore the lines between these two tags.
Problem: This is what you wrote: < script> $('myelem').setStyle({heigh:'250px', width:'450px'}); < /script>
And this is what Memberkit published < script>
$('myelem').setStyle(); < /script>
Solution: {IGNORE} < script>
$('myelem').setStyle({heigh:'250px', width:'450px'}); < /script> {/IGNORE}
Important: If you forget to close {IGNORE} tag. Memberkit template engine will completely stop after parsing this template. Don't forget to close IGNORE tags with {/IGNORE} tag
Tags:
template tags tips
Related Articles:
Add a new comment
|
Send Comment