stp

0.0.4 • Public • Published
describe('stp', function() {
 
  it('compile', function() {
    var fn = stp("hello ${name}");
    assert.equal(typeof fn, 'function');
    var rs = fn({ name: "word" });
    assert.equal(rs, 'hello word');
  });
 
  it('parse', function() {
    var rs = stp("hello ${name}", { name: "word" });
    assert.equal(rs, 'hello word');
  });
 
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    196
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    196
  • 0.0.3
    1
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i stp

Weekly Downloads

44

Version

0.0.4

License

MIT

Last publish

Collaborators

  • houzhanfeng