Skip to content

Commit

Permalink
update usage example
Browse files Browse the repository at this point in the history
  • Loading branch information
snypelife committed Nov 27, 2015
1 parent b311b58 commit f119753
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ messageTo: Hello %s!
```js
// example.js

var path = require('path');
var oxford = require('oxford');
oxford.registerPlugin('yaml');

var ox = oxford.importYAML('./lib/text.yml');
var ox = oxford.importYAML(path.join(__dirname, './lib/text.yml'));

ox.get('message') // Hello World!
ox.get('messageTo', 'Homer') // Hello Homer!
Expand Down

0 comments on commit f119753

Please sign in to comment.