Skip to content

Instantly share code, notes, and snippets.

@gtzilla gtzilla/gist:1096293
Created Jul 21, 2011

What would you like to do?
// utility string parse function
function out( str, options ) {
for(k in options) {
str=str.replace(/%\{([a-zA-Z0-9-]{1,}?)\}/mi, function(m, key ){
return options[key];
return str;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.