Replies: 2 comments 3 replies
-
@hay-kot can you help with internals? I'm a bit confused with all these resolving paths for project, templates, partials. E.g. my main taskfile from version: '3'
vars:
PROJECT: myapp
includes:
bootsrap:
taskfile: .tasks/bootstrap.yaml
tasks:
default:
silent: true
cmds:
- task --list but P.S.: I cant have |
Beta Was this translation helpful? Give feedback.
-
Hmm. Trying to understand what you're trying to accomplish, if you're just trying to render two different files based on a user choice you can accomplish this by putting all file contents in an
https://hay-kot.github.io/scaffold/template-system/partials.html#how-partials-work As far as I understand what you're saying, yes I think that's intended. What do you mean by isolate partials? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
e.g. I want to create a single repo where I could have 1 project scaffold and bunch of scaffold templates?
where first one will scaffold a project and second one will add missed files.
Here is my repo structure right now.

where my
templates/bootstrap.yaml
looks like this:but when I run second command
scaffold new bootstrap
, I get the errorfailed to register partials FS: invalid partial name: env/containerd
. When I move partials to the top of repo - the same level as bootstrap, then its kinda working. Is it by design? How can I isolate partials?The main goal is - e.g. there should be one taskfile with bootsrap tasks, but which one (containerd or docker) will be decided with
scaffold new bootstrap
. Normally I would use feature, but it doesn't allow to rename files or change paths, rewrite has no conditions, so looks like templates + partials is the only way?Beta Was this translation helpful? Give feedback.
All reactions