Created
June 2, 2020 15:32
-
-
Save mrstebo/1d41890a2b785ac9feebbda96bb0cc86 to your computer and use it in GitHub Desktop.
i-lazy-dev-i-build-scripts-write-code-2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| File.open("./routes/#{route_name}.js", 'w') do |f| | |
| f.puts TEMPLATE | |
| .gsub(/\{route_name\}/, route_name) | |
| .gsub(/\{properties\}/, properties.join(",\n ")); | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment