From d017b67fe5e580d91a9f57167cd8ddf5e22b1b36 Mon Sep 17 00:00:00 2001 From: Laurent Sansonetti Date: Wed, 17 Sep 2014 00:47:28 +0900 Subject: [PATCH] =?UTF-8?q?=E2=80=9Cmotion=20create=E2=80=9D=20will=20now?= =?UTF-8?q?=20load=20templates=20in=20/Library/RubyMotionPre=20if=20necess?= =?UTF-8?q?ary?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/motion/project/template.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/motion/project/template.rb b/lib/motion/project/template.rb index feeade25..c52a7b18 100644 --- a/lib/motion/project/template.rb +++ b/lib/motion/project/template.rb @@ -37,6 +37,8 @@ module Motion; module Project File.expand_path(File.join(__FILE__, '../template')), File.expand_path(File.join(ENV['HOME'], 'Library/RubyMotion/template')) ] + pre_templates = '/Library/RubyMotionPre/lib/motion/project/template' + Paths << pre_templates if File.exist?(pre_templates) # TODO Caching these and making it based on the Paths constant makes it # less simple to register plugin templates, because you cannot add