Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sam113101/fffbb9671da64d549204bd9627bf32dd to your computer and use it in GitHub Desktop.
Save sam113101/fffbb9671da64d549204bd9627bf32dd to your computer and use it in GitHub Desktop.
sample.rb
<% temp = create_tables_add_general(object){|rel_table, main_table, schema, prefix|
if(main_table = "Data")
import_create = true
""" import Sce.Data"""
else
""
end
} %>
defmodule Sce.<%= @CS %>Resolver do
# if import_create is true i want to print some line here.
<% if import_create %>
text here
<% end %>
<%= temp.join("\n") %>
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment