hugo/parser/pageparser
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
..
item.go Add inline shortcode support 2018-11-27 16:14:09 +01:00
pagelexer.go Add inline shortcode support 2018-11-27 16:14:09 +01:00
pagelexer_test.go parser/pageparser: Fix when only shortcode and then summary 2018-11-24 18:23:23 +01:00
pageparser.go Resolve error handling/parser related TODOs 2018-10-23 19:41:22 +02:00
pageparser_intro_test.go parser/pageparser: Fix when only shortcode and then summary 2018-11-24 18:23:23 +01:00
pageparser_shortcode_test.go Add inline shortcode support 2018-11-27 16:14:09 +01:00