Module: Bobkit::Actions
Instance Method Summary
collapse
Methods included from SlimExtra
#render
#create_file, #create_folder_for
Methods included from SassExtra
#compile_css
Instance Method Details
#css_output_folder(path = nil) ⇒ Object
22
23
24
|
# File 'lib/bobkit/actions.rb', line 22
def css_output_folder(path=nil)
setopt :css_output_folder, path, "#{output_folder}/css"
end
|
#layouts_folder(path = nil) ⇒ Object
10
11
12
|
# File 'lib/bobkit/actions.rb', line 10
def layouts_folder(path=nil)
setopt :layouts_folder, path, "#{templates_folder}/layouts"
end
|
#output_folder(path = nil) ⇒ Object
18
19
20
|
# File 'lib/bobkit/actions.rb', line 18
def output_folder(path=nil)
setopt :output_folder, path, 'output'
end
|
#scope(scope = nil) ⇒ Object
34
35
36
|
# File 'lib/bobkit/actions.rb', line 34
def scope(scope=nil)
scope ? setopt(:scope, Scope.new(scope)) : options[:scope]
end
|
#scss_options(options = nil) ⇒ Object
30
31
32
|
# File 'lib/bobkit/actions.rb', line 30
def scss_options(options=nil)
setopt :scss_options, options, scss_defaults
end
|
#slim_options(options = nil) ⇒ Object
26
27
28
|
# File 'lib/bobkit/actions.rb', line 26
def slim_options(options=nil)
setopt :slim_options, options, slim_defaults
end
|
#styles_folder(path = nil) ⇒ Object
14
15
16
|
# File 'lib/bobkit/actions.rb', line 14
def styles_folder(path=nil)
setopt :styles_folder, path, 'styles'
end
|
#templates_folder(path = nil) ⇒ Object
6
7
8
|
# File 'lib/bobkit/actions.rb', line 6
def templates_folder(path=nil)
setopt :templates_folder, path, 'templates'
end
|
#use_defaults ⇒ Object
38
39
40
|
# File 'lib/bobkit/actions.rb', line 38
def use_defaults
@@options = {}
end
|