hugo/common
Bjørn Erik Pedersen bc337e6ab5 Add inline shortcode support
An inline shortcode's name must end with `.inline`, all lowercase.

E.g.:

```bash
{{< time.inline >}}{{ now }}{{< /time.inline >}}
```

The above will print the current date and time.

Note that an inline shortcode's inner content is parsed and executed as a Go text template with the same context as a regular shortcode template.

This means that the current page can be accessed via `.Page.Title` etc. This also means that there are no concept of "nested inline shortcodes".

The same inline shortcode can be reused later in the same content file, with different params if needed, using the self-closing syntax:

```
{{< time.inline />}}
```

Fixes #4011
2018-11-27 16:14:09 +01:00
..
collections More spelling corrections 2018-11-13 18:28:40 +01:00
herrors Add inline shortcode support 2018-11-27 16:14:09 +01:00
hugio Add a consolidated file cache 2018-11-13 14:19:42 +01:00
loggers More spelling corrections 2018-11-13 18:28:40 +01:00
maps common/collections: Allow a mix of slice types in append/Scratch.Add 2018-10-27 15:05:40 +02:00
math Add a newScratch template func 2018-07-06 17:51:38 +02:00
terminal Fix ANSI character output regression on Windows 2018-11-02 09:09:02 +01:00
text Add file (line/col) info to ref/relref errors 2018-11-01 21:06:35 +01:00
types Prevent stale content in Fast Render Mode 2018-10-17 10:15:22 +02:00
urls Add file (line/col) info to ref/relref errors 2018-11-01 21:06:35 +01:00