Bjørn Erik Pedersen
93ca7c9e95
all: Refactor to nonglobal Viper, i18n etc.
...
This is a final rewrite that removes all the global state in Hugo, which also enables
the use if `t.Parallel` in tests.
Updates #2701
Fixes #3016
2017-02-17 17:15:26 +01:00
Bjørn Erik Pedersen
6dbae7b671
Be explicit about the type in Scratch test
...
A puzzle, but it sometimes produces a int64 as it is now.
2016-03-24 19:57:26 +01:00
Bjørn Erik Pedersen
b5bced1db4
Add a simple benchmark for Scratch
2016-03-24 15:05:40 +01:00
Bjørn Erik Pedersen
35b798247e
Check returned error in Scratch-test
2016-03-22 23:40:39 +01:00
Bjørn Erik Pedersen
02effd9dc4
Protect against concurrent Scratch read and write
...
Fixes #2005
2016-03-21 20:42:27 +01:00
Bjørn Erik Pedersen
eaba04e82b
Add list support in Scratch
2016-03-06 15:44:17 +01:00
Anthony Fok
8509727fe8
Add copyright header to that source files that don’t have one.
...
See #1646
2015-12-10 15:19:38 -07:00
Marek Janda
4bed69629e
Add map support to scratch
2015-08-02 17:23:36 +02:00
bep
be2c67ad45
Fix broken Travis tests
...
No idea why these suddenly starts to fail.
2015-04-22 18:59:42 +02:00
bep
420c9e4d3d
Add writable context to Node
...
The variable scope in the Go templates makes it hard, if possible at all, to write templates with counter variables or similar state.
This commit fixes that by adding a writable context to Node, backed by a map: Scratch.
This context has three methods, Get, Set and Add. The Add is tailored for counter variables, but can be used for any built-in numeric values or strings.
2015-01-31 22:01:30 +01:00