Compare commits

...
Author SHA1 Message Date
Andy Waite 965ea3cfb1 WIP 2022-03-14 12:03:47 -04:00
2 changed files with 19 additions and 6 deletions
+7
View File
@@ -22,6 +22,13 @@ module Liquid
)
STRIP_HTML_TAGS = /<.*?>/m
# @public_docs
# @title Size
# @syntax The syntax
# @summary The summary
# @type filter
# @category My category
# @description
# Return the size of an array or of an string
def size(input)
input.respond_to?(:size) ? input.size : 0
+7 -1
View File
@@ -1,6 +1,13 @@
# frozen_string_literal: true
# @public_docs
module Liquid
# @public_docs
# @title Assign
# @syntax The syntax
# @summary The summary
# @type tag
# @description
# Assign sets a variable in your template.
#
# {% assign foo = 'monkey' %}
@@ -8,7 +15,6 @@ module Liquid
# You can then use the variable later in the page.
#
# {{ foo }}
#
class Assign < Tag
Syntax = /(#{VariableSignature}+)\s*=\s*(.*)\s*/om