Skip to content

Instantly share code, notes, and snippets.

@danlynn
Created November 9, 2011 22:28
Show Gist options
  • Save danlynn/1353341 to your computer and use it in GitHub Desktop.
Save danlynn/1353341 to your computer and use it in GitHub Desktop.
erb_eval_mode = line =~ /^%ERB_START_EVAL/ if line =~ /^%ERB_START_EVAL|%ERB_STOP_EVAL/
if line =~ /^%ERB_START_EVAL/
erb_eval_mode = true
if line =~ /^%ERB_STOP_EVAL/
erb_eval_mode = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment