Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/hugofs
AgeCommit message (Collapse)Author
2016-04-10hugofs: Add package docBjørn Erik Pedersen
2016-04-07hugofs: Fix GoDocBjørn Erik Pedersen
2016-04-02hugofs: Add missing not nil checks to testsBjørn Erik Pedersen
2016-03-31Add readFile template funcBjørn Erik Pedersen
This also includes a refactor of the hugofs package and its usage. The motivation for that is: The Afero filesystems are brilliant. Hugo's way of adding a dozen of global variables for the different filesystems was a mistake. In readFile (and also in some other places in Hugo today) we need a way to restrict the access inside the working dir. We could use ioutil.ReadFile and implement the path checking, checking the base path and the dots ("..") etc. But it is obviously better to use an Afero BasePathFs combined witha ReadOnlyFs. We could create a use-once-filesystem and handle the initialization ourselves, but since this is also useful to others and the initialization depends on some other global state (which would mean to create a new file system on every invocation), we might as well do it properly and encapsulate the predefined set of filesystems. This change also leads the way, if needed, to encapsulate the file systems in a struct, making it possible to have several file system sets in action at once (parallel multilanguage site building? With Moore's law and all...) Fixes #1551
2015-12-07Fix copyright headers in source filesBjørn Erik Pedersen
Still need to add some missing headers and an AUTHORS file. See #1646
2015-11-24Change the license to Apache 2.0Steve Francia
2015-11-17Hugo server renders and serves from memory by default (30%+ improvement)spf13
2015-03-26Add support for Ace base and inner templatesbep
Fixes #994 Fixes #511
2014-11-04Setting to filesystems to the afero.fs interface so can be easily swapped out.spf13
2014-11-01Migrating Hugo to Afero for filesystem calls.spf13