Re: [nikola-discuss] How to reference a metadata value in reStructuredText?

2020-05-02 Thread Chris Warrick
On Sat, 2 May 2020 at 17:03, Steve wrote: > > Chris, the docs indicate that the value still needs to be resolved to be > passed to the template. > > Suppose I create shortcodes/foo.tmpl as such: > > This uses the bar variable: ${bar} > > And my post contains this: > > {{% foo bar=slug %}} > > >

Re: [nikola-discuss] How to reference a metadata value in reStructuredText?

2020-05-02 Thread Steve
Chris, the docs indicate that the value still needs to be resolved to be passed to the template. Suppose I create shortcodes/foo.tmpl as such: This uses the bar variable: ${bar} And my post contains this: {{% foo bar=slug %}} Then the output file will contain: This uses the bar variable: sl