wordsmith

Be a JavaScript poet and not even know it! JS filter registry for i18n, markdown, and other helpers.


License
MIT
Install
bower install wordsmith

Documentation

wordsmith

JS filter registry for string utility helpers.

###Bower installation

bower install wordsmith

===

###Why wordsmith?

Standardization is one of the hardest principles to define amongst a team of developers. Too many cooks is the epitome of large team collaboration, especially when dealing with global dependencies. WordSmith is designed to help consolidate standards by centralizing string utility methods and application phrases, not to mention it’s i18n compliant.

###Example

ws.extend({
    "greeting": "Welcome to the %{location}"
});

// following example uses the expression filter and returns "Welcome to the ThunderDOM"
ws('gretting', ['expression'], {
    "location": 'ThunderDOM'
});
ws.extend({
    "scream": "ahh!"
});

// creating a filter
ws.registerFilter('toUpper', function(phrase) {
    return phrase.toUpperCase();
});

// following example will return "AHH!"
ws('scream', ['toUpper']);