liquid

A Liquid template engine in Go

MIT License

Stars
286
Committers
10
liquid - v1.5.2

Published by danog 8 days ago

What's Changed

Full Changelog: https://github.com/osteele/liquid/compare/v1.5.1...v1.5.2

liquid - v1.5.1

Published by danog 9 days ago

What's Changed

Full Changelog: https://github.com/osteele/liquid/compare/v1.5.0...v1.5.1

liquid - v1.5.0

Published by danog 10 days ago

What's Changed

New Contributors

Full Changelog: https://github.com/osteele/liquid/compare/v1.4.0...v1.4.1

liquid - v1.4.0 Latest Release

Published by danog 6 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/osteele/liquid/compare/v1.3.3...v1.4.0

liquid - v1.3.3

Published by danog 6 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/osteele/liquid/compare/v1.3.2...v1.3.3

liquid - v1.3.2

Published by danog about 1 year ago

What's Changed

Full Changelog: https://github.com/osteele/liquid/compare/v1.3.1...v1.3.2

liquid - v1.3.1

Published by danog about 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/osteele/liquid/compare/v1.3.0...v1.3.1

liquid -

Published by osteele about 7 years ago

New Features

  • IterationKeyedMap makes a go map iterate like a Ruby Liquid struct: by key, instead of [key, value] pair

Compatibility

  • Default time format matches Ruby Liquid

Bug Fixes

  • Typed nil pointers are equal to nil
  • map[nil] doesn't error

Internals

liquid -

Published by osteele about 7 years ago

Bug Fixes

  • Fix array[nil]
  • Fix m["str"] where m has type map[interface{}]interface{} (as opposed to map[string]interface{})

Platforms

  • Builds on Windows (but does not pass test suite; see #22)
liquid -

Published by osteele about 7 years ago

New Features

  • #27 Support registering variadic functions as filters (@thessem)
  • #26 Add setting to customise delimiters (@thessem)

Bug Fixes

  • #28 Fix struct PropertyValue attempting to use an invalid pointer (@thessem)

Performance

  • ToLiquid invocations are cached in more circumstances

Contributors

  • Oliver Steele @osteele
  • James Littlejohn @thessem
liquid -

Published by osteele over 7 years ago

  • #23 struct value fields and methods are available via index and property syntax. See the README. Suggestion and example code contributed by @thessem.
  • #23 &map is equivalent to map. Suggestion and example code contributed by @thessem.
  • #24 When a filter returns an error, it's returned as a render error. Contributed by @thessem.
  • yaml.MapSlice is recognized as a hash.
  • []byte values are converted to string, in render output and filter arguments.
  • New method engine.ParseString.
  • array[1.2] is equivalent to array[1]. It's weird, but that's Ruby.

Contributors

  • Oliver Steele @osteele
  • James Littlejohn @thessem
liquid -

Published by osteele over 7 years ago

Renamed ParseError → SyntaxError

liquid -

Published by osteele over 7 years ago

{% for item in hash %} binds item to [key, value] pairs

liquid -

Published by osteele over 7 years ago

Initial release

liquid -

Published by osteele over 7 years ago

  • Whitespace control
  • Syntax for number literals matches Liquid (no more .0, 1.)
  • Error on too many filter arguments {{ n | default: 1, 2 }}
Package Rankings
Top 2.18% on Proxy.golang.org
Badges
Extracted from project README
go badge Golangci-lint badge Go Report Card badge MIT License
Related Projects