p006/api/img/octicons/10.0.0/lib/octicons_jekyll/test/helper.rb

13 lines
260 B
Ruby
Raw Normal View History

2022-11-29 22:06:03 +05:00
require "minitest/autorun"
require "jekyll-octicons"
# Parse a string into a liquid template
def parse(string)
Liquid::Template.parse(string)
end
# Parse and render a string
def render(string, assigns = {})
parse(string).render!(assigns)
end