Basic sdf question here. I deploy using sdf via th...
# sdf
a
Basic sdf question here. I deploy using sdf via the suitecloud cli I am able to deploy all my scripts, but I want to push a ftl template file when I deploy. When I try to run
file:upload -i
, it doesn't show my file as an option to push. Any suggestions?
👀 1
Uh oh! I got the 👀 from @erictgrubaugh. Never a good sign if he doesn't have the answer
e
I used an
ftl
in one of my most recent projects and had to resort to manual uploads
i.e. copy-pasting 😕
There is a folder in the SDF project structure for template files, but those seem to be the non-advanced kind.
a
Interesting, I also did it manually but I assumed that there was a better way of doing it. I could write the template as a string in js/ts but that feels weird also
e
I would not recommend that. I design around that by having my template as a file in the file cabinet (usually in the same folder as the relevant script), then I load the contents of the template using
N/file
I have a visceral reaction to long XML/HTML strings in code 🤢
💩 1
but I digress! I would love to know there's a better solution.