Skip to content

Instantly share code, notes, and snippets.

@ArthurN
Created July 18, 2011 22:24
Show Gist options
  • Save ArthurN/1090842 to your computer and use it in GitHub Desktop.
Save ArthurN/1090842 to your computer and use it in GitHub Desktop.
isotope fix for nil exception
source = included_scripts_source || ""
source += " " + IO.read(isotope_file_path)
context = ExecJS.compile(source)
script = "Isotope(#{view_file_content.to_json}, #{options[:locals].to_json})"
output = context.eval(script)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment