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

13 lines
260 B
Ruby
Executable File

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