mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-05-09 23:37:09 +01:00
feat: allow FRESH themes to specify base folder
Currently, FRESH themes contain a `src` folder that contains theme artifacts. This commit allows the theme to specify a different folder (including "." or ""), supporting arbitrary folder structures.
This commit is contained in:
@ -24,7 +24,9 @@ READFILES = require 'recursive-readdir-sync'
|
||||
@class FRESHTheme ###
|
||||
class FRESHTheme
|
||||
|
||||
|
||||
constructor: () ->
|
||||
@baseFolder = 'src'
|
||||
return
|
||||
|
||||
### Open and parse the specified theme. ###
|
||||
open: ( themeFolder ) ->
|
||||
@ -86,7 +88,7 @@ _load = (formatsHash) ->
|
||||
|
||||
that = @
|
||||
major = false
|
||||
tplFolder = PATH.join @folder, 'src'
|
||||
tplFolder = PATH.join @folder, @baseFolder
|
||||
|
||||
copyOnly = ['.ttf','.otf', '.png','.jpg','.jpeg','.pdf']
|
||||
|
||||
|
Reference in New Issue
Block a user