From f15814743c4d25c1bc5371e75d1ef51c9afdddba Mon Sep 17 00:00:00 2001 From: Mark Bates Date: Fri, 22 Dec 2017 15:32:16 -0500 Subject: [PATCH] updated README to reflect the new `~=` operator --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 24b5623..2daf973 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Plush [![Code Climate](https://codeclimate.com/github/gobuffalo/plush/badges/gpa.svg)](https://codeclimate.com/github/gobuffalo/plush) [![Build Status](https://travis-ci.org/gobuffalo/plush.svg?branch=master)](https://travis-ci.org/gobuffalo/plush) [![GoDoc](https://godoc.org/github.com/gobuffalo/plush?status.svg)](https://godoc.org/github.com/gobuffalo/plush) +# Plush [![Build Status](https://travis-ci.org/gobuffalo/plush.svg?branch=master)](https://travis-ci.org/gobuffalo/plush) [![GoDoc](https://godoc.org/github.com/gobuffalo/plush?status.svg)](https://godoc.org/github.com/gobuffalo/plush) Plush is the templating system that [Go](http://golang.org) both needs _and_ deserves. Powerful, flexible, and extendable, Plush is there to make writing your templates that much easier. @@ -113,6 +113,7 @@ Complex `if` statements can be built in Plush using "common" operators: * `==` - checks equality of two expressions * `!=` - checks that the two expressions are not equal +* `~=` - checks a string against a regular expression (`foo ~= "^fo"`) * `<` - checks the left expression is less than the right expression * `<=` - checks the left expression is less than or equal to the right expression * `>` - checks the left expression is greater than the right expression