-
I have a project where I'm using Wyam from code, and I'm trying to understand the best way to get data from one pipeline into another. I have a pipeline that compiles Sass into CSS, and another pipeline that generates HTML using Razor templates. I'd like to be able to calculate the hash of the compiled CSS file, and use that hash when referencing the file from the HTML. But, since they're separate pipelines, adding the hash as metadata doesn't help, right? Do I need to move these two separate pipelines into a single pipeline, or is there a way to achieve this with separate pipelines that I'm not seeing? What's the simplest way to combine two otherwise separate pipelines? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It looks like I probably had some fundamental misunderstandings about how pipelines worked, and this was a lot easier than I was making it out to be. In the end, I made sure that the Sass pipeline was running before the Razor pipeline, and then had access to those documents automatically. I also removed all of the |
Beta Was this translation helpful? Give feedback.
It looks like I probably had some fundamental misunderstandings about how pipelines worked, and this was a lot easier than I was making it out to be. In the end, I made sure that the Sass pipeline was running before the Razor pipeline, and then had access to those documents automatically.
I also removed all of the
WriteFile
modules from the end of each pipeline, and ran a pipeline at the end withnew Documents(), new WriteFile()
as the modules. At the very least, I think this made things simpler to think about, not sure if it made a real difference in how things were processed.