Add BaseFs to RenderingContext
authorNiklas Fasching <niklas.fasching@gmail.com>
Thu, 3 Oct 2019 21:27:51 +0000 (23:27 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 7 Oct 2019 15:30:15 +0000 (17:30 +0200)
commit020a6fbd7f6996ed84d80ba6c37fe0d8c2536806
treeffe1aa927b6c89830fc5d5782867db2830c11878
parentb152216d5c8adbf1bfa4c6fb7b2a50b6866c685e
Add BaseFs to RenderingContext

The org mode renderer supports including other files [1]. We don't want to
allow reading of arbitrary files (go-org defaults to ioutil.ReadFile [2]) but want
to make use of the FileSystem abstractions hugo provides. For starters we will
allow reading from the content directory only

[1]: e.g. `#+INCLUDE: ./foo.py src python` includes `foo.py` as a python source
block.
helpers/content.go
hugolib/page__per_output.go