-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy binary files #44
Comments
So it could look like this, whereas the first value is the path to the file to be copied and the second is the path where to copy the file: |
I should have mentioned, but this feature request is for when a custom
I was imagining that there would be an additional special variable that might be checked around here Lines 15 to 18 in 0df6de1
cl-emb:execute-emb . I do like the idea though of being able to specify a static directory or have a default static directory for which files would be copied without cl-emb processing. I'm not sure though about being able to specify different target filenames/locations for the copied static files, as I don't have a use-case for this and it wouldn't really be consistent with how cl-emb processed files are copied, always with the same name/relative location except with "skeleton" replaced with the project name.
@fukamachi Any thoughts on the right design for this feature if you agree with it and if you'd be open to a PR? Edit: it now occurs to me that there might be JS or CSS files in the static directory that might be useful to process with cl-emb, so to me I think being able to specify binary file types, either with a special variable or an additional parameter to |
It would be convenient to be able to specify some files from the skeleton to copy over without being processed by cl-emb.
I'd like to include favicon.ico or a png, or some other file that is not text-based, but currently an error like the following is signaled:
Perhaps there could be a second special variable that would be bound to a regular expression representing files to copy directly, or else a list of file extensions or filenames.
As a workaround, I can keep these files in another directory and copy them over after calling CL-PROJECT:MAKE-PROJECT, but this seems like a feature that could be added to the library.
The text was updated successfully, but these errors were encountered: