Method: Hyde::Project#path

Defined in:
lib/hyde/project.rb

#path(what, *a) ⇒ Object

Method: path (Hyde::Project) Returns the path for a certain aspect.

## Example

Hyde.project.path(:site)


101
102
103
104
105
# File 'lib/hyde/project.rb', line 101

def path(what, *a)
  return nil unless [:output, :site, :layouts, :extensions, :partials].include?(what)
  path = config.send(:"#{what}_path")
  root path, *a  if path
end