Skip to content

Commit 4672cb7

Browse files
authored
fix: __dirname
1 parent bd83a57 commit 4672cb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ art-template 是一个渲染性能出众模板引擎,无论在 NodeJS 还是
4444

4545
```js
4646
var template = require('art-template');
47-
var html = template(__diranme + '/tpl-user.art', {
47+
var html = template(__dirname + '/tpl-user.art', {
4848
user: {
4949
name: 'aui'
5050
}
@@ -502,4 +502,4 @@ var html = template.render('hi, <%=value%>.', {value: 'aui'});
502502

503503
## 授权协议
504504

505-
[MIT](./LICENSE)
505+
[MIT](./LICENSE)

0 commit comments

Comments
 (0)