Module: StaticMatic::BuildMixin
- Included in:
- Base
- Defined in:
- lib/staticmatic/mixins/build.rb
Instance Method Summary collapse
Instance Method Details
#build ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/staticmatic/mixins/build.rb', line 3 def build src_file_paths('*').each do |src_path| ext = File.extname(src_path).sub(/^\./, '') if Tilt.mappings[ext].length > 0 and not File.directory? src_path generate_site_file(src_path) else copy_file_from_src_to_site(src_path) end end end |