-
Notifications
You must be signed in to change notification settings - Fork 0
Non HTML content
haskelt edited this page May 10, 2021
·
1 revision
For non-HTML content that is used by multiple pages, the best approach is to put it in the Resources directory. For content specific to a particular page, you may prefer to have it in the same directory as the page itself. By default, Salal will copy any files it finds in a content directory over to the corresponding build directory. For example, suppose you had a content directory my_page that looked like this:
content
|____my_page
|____index.xml
|____image.png
|____config.json
|____report.pdf
then if you did a build using a profile test, you would get the following in your build directory
build
|____test
|____my_page
|____index.html
|____image.png
|____config.json
|____report.pdf
If you want more control over what does and doesn't get copied over, check out the section on Build control.
- Home
- About Salal
- Installation
- Tutorials
- Core concepts
- Getting more out of Salal
- Advanced topics
- Change log