|
|
@@ -20,7 +20,98 @@ Install
|
|
|
Usage
|
|
|
------
|
|
|
|
|
|
-(TBD)
|
|
|
+### `ref` tag
|
|
|
|
|
|
+#### Syntax
|
|
|
+
|
|
|
+```
|
|
|
+$ref(file.txt)
|
|
|
+$ref(file.txt, page=/somewhere/page)
|
|
|
+```
|
|
|
+
|
|
|
+#### Output
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+#### Options
|
|
|
+
|
|
|
+- **`page`** : Target page path of reference file
|
|
|
+
|
|
|
+### `refs` tag
|
|
|
+
|
|
|
+#### Syntax
|
|
|
+
|
|
|
+```
|
|
|
+$refs(/somewhere/page, regexp=/^file.*\.txt$/)
|
|
|
+```
|
|
|
+
|
|
|
+#### Output
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+#### Options
|
|
|
+
|
|
|
+- **`regexp`** : Regular Expression to retrieve
|
|
|
+- **`format`** : File format specification
|
|
|
+
|
|
|
+
|
|
|
+### `refimg` tag
|
|
|
+
|
|
|
+#### Syntax
|
|
|
+
|
|
|
+```
|
|
|
+$refimg(pict.png, width=50%, alt=Pic)
|
|
|
+```
|
|
|
+
|
|
|
+#### Output
|
|
|
+
|
|
|
+```html
|
|
|
+<img src="/attachment/xxxxx" width="50%" alt="Pic">
|
|
|
+```
|
|
|
+
|
|
|
+#### Options
|
|
|
+
|
|
|
+- **`width`** : width
|
|
|
+- **`height`** : height
|
|
|
+- **`max-width`** : max-width
|
|
|
+- **`max-height`** : max-height
|
|
|
+- **`alt`** : alt text
|
|
|
+
|
|
|
+
|
|
|
+### `refsimg` tag
|
|
|
+
|
|
|
+#### Syntax
|
|
|
+
|
|
|
+```
|
|
|
+$refsimg(/somewhere/page, regexp=/^.*\.png$/, max-width=200)
|
|
|
+```
|
|
|
+
|
|
|
+#### Output
|
|
|
+
|
|
|
+```html
|
|
|
+<ul>
|
|
|
+ <li><img src="/attachment/xxxxx" style="max-width: 200"></li>
|
|
|
+ <li><img src="/attachment/yyyyy" style="max-width: 200"></li>
|
|
|
+ <li><img src="/attachment/zzzzz" style="max-width: 200"></li>
|
|
|
+</ul>
|
|
|
+```
|
|
|
+
|
|
|
+#### Options
|
|
|
+
|
|
|
+- **`width`** : width
|
|
|
+- **`height`** : height
|
|
|
+- **`max-width`** : max-width
|
|
|
+- **`max-height`** : max-height
|
|
|
+
|
|
|
+
|
|
|
+TODO
|
|
|
+-----
|
|
|
+
|
|
|
+- [ ] ref
|
|
|
+- [ ] refs
|
|
|
+ - [ ] `regexp` option
|
|
|
+ - [ ] `format` option
|
|
|
+- [ ] refimg
|
|
|
+- [ ] refsimg
|
|
|
|
|
|
[GROWI]: https://github.com/weseek/growi
|