Module: Entityjs
- Defined in:
- lib/entityjs/dirc.rb,
lib/entityjs.rb,
lib/entityjs/page.rb,
lib/entityjs/assets.rb,
lib/entityjs/config.rb,
lib/entityjs/command.rb,
lib/entityjs/compile.rb,
lib/entityjs/version.rb,
lib/entityjs/commands/new.rb,
lib/entityjs/commands/comp.rb,
lib/entityjs/commands/font.rb,
lib/entityjs/commands/test.rb,
lib/entityjs/commands/build.rb,
lib/entityjs/commands/eunit.rb,
lib/entityjs/commands/server.rb,
lib/entityjs/commands/release.rb,
lib/entityjs/parsers/parse_tmx.rb,
lib/entityjs/parsers/parse_xml.rb,
lib/entityjs/commands/templates.rb,
lib/entityjs/parsers/parse_coffee.rb
Overview
The Compile class transforms text data into js This includes, xml, tmx, json, coffeescript, etc
Defined Under Namespace
Classes: Assets, Build, Command, Comp, Compile, Config, Dirc, Eunit, Font, New, Page, ParseCoffee, ParseTMX, ParseXML, Release, Server, Templates, Test
Constant Summary
collapse
- VERSION =
"0.4.1"
Class Method Summary
collapse
Class Method Details
.default_template ⇒ Object
55
56
57
|
# File 'lib/entityjs.rb', line 55
def self.default_template
'circle'
end
|
.eunit_folder ⇒ Object
51
52
53
|
# File 'lib/entityjs.rb', line 51
def self.eunit_folder
Entityjs::root+'/public/qunit'
end
|
.root ⇒ Object
43
44
45
|
# File 'lib/entityjs.rb', line 43
def self.root
@root = File.expand_path('../..',__FILE__)
end
|
.source_folder ⇒ Object
47
48
49
|
# File 'lib/entityjs.rb', line 47
def self.source_folder
Entityjs::root+'/src'
end
|
.template_path(name = nil) ⇒ Object
59
60
61
62
63
64
65
66
67
68
69
|
# File 'lib/entityjs.rb', line 59
def self.template_path(name=nil)
if name.nil? || name.empty?
name = self.default_template
end
path = "#{Entityjs::root}/templates/#{name}"
if File.directory? path
return Dir.glob(path+'/*')
else
return nil
end
end
|