docs: make it clear for extnames, see #214

This commit is contained in:
harttle
2020-04-03 23:08:09 +08:00
parent 5099b2a762
commit f6789f517c
4 changed files with 17 additions and 9 deletions
+2 -2
View File
@@ -45,8 +45,8 @@ LiquidJS defaults this option to <code>true</code> to be compatible with shopify
**extname** defines the default extname to be appended into filenames if the filename has no extname. Defaults to `''` which means it's disabled by default. By setting it to `.liquid`:
```liquid
{% render "foo" %} loads foo.liquid
{% render "foo.html" %} loads foo.html
{% render "foo" %} there's no extname, adds `.liquid` and loads foo.liquid
{% render "foo.html" %} there is an extname already, loads foo.html directly
```
{% note info Legacy Versions %}