Skip to content

Instantly share code, notes, and snippets.

@pdxmph
Last active December 11, 2015 23:58
Show Gist options
  • Save pdxmph/4679961 to your computer and use it in GitHub Desktop.
Save pdxmph/4679961 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
require "rubygems"
require "liquid"
template = <<TEMPLATE
{% assign version = '4.0.2' %}
{% if version contains '3.0' %}
Version is {{ version }} and it has a 3.0 in it
{% else %}
Version is {{ version }} and it has no 3.0 in it
{% endif %}
TEMPLATE
puts Liquid::Template.parse(template).render
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment