JAVASCRIPT
CSS
PHP
3rd-Party Scripts
UPLOAD YOUR SCRIPT
Search
Recent Searches
"javascript:document.search_form.submit(); "
Get*00
Functions,
Date.isleap
suit,trousers,shirts,
Javascript onload popup window
errors.php
3Q iPod Video Converter
An alternative to the Input Type = "Submit " button
PHP GET and POST Variables
Rate this script:
I Love it
/
I Hate it
simple templating engine
Code
function
parseTemplate
(
content, data
)
{
content=String
(
content
)
;
re =
/\
[
\
[
(
\w*
)
\
]
\
]
/gi
;
return
(
content.
replace
(
re,
function
(
$
1
,$
2
,$
3
)
{
return
data
[
$
2
]
;
}
)
)
;
}
simple templating engine scripts
|
simple templating engine snippet
|
simple templating engine example
|
simple templating engine tutorial
|
simple templating engine code