Page 1 of 1

Using files that can compile to XAML instead of XAML?

Posted: 22 Sep 2016, 03:01
by nokola
Similarly to how https://pugjs.org/api/getting-started.html compiles Pug to HTML, I'd like to use a pug-to-XAML compiler.
Is it possible to hook into Noesis' during build and run some custom code I have that compiles .pug to .xaml? I'd like to have .pug files instead of .xaml. I can do it by having both .xaml and .pug files in the same folder but would rather have just the .pug files.

Re: Using files that can compile to XAML instead of XAML?

Posted: 24 Sep 2016, 02:52
by jsantos
Hi!

Our unity build logic can be found in the file Editor/NoesisGUI/NoesisPostProcessor.cs. Building of XAMLs happens inside the Build() function.

I suppose you must hook over there but I am not sure about what you exactly need.

Re: Using files that can compile to XAML instead of XAML?

Posted: 25 Sep 2016, 21:54
by nokola
Yes, that's what I needed!
I'll hook the build logic to convert from .pug to .xaml there and build.
Thanks for the prompt response!

Re: Using files that can compile to XAML instead of XAML?

Posted: 26 Sep 2016, 21:24
by jsantos
You're welcome! : )