Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use precompiled views #63

Open
jhorsman opened this issue Nov 30, 2017 · 1 comment
Open

Use precompiled views #63

jhorsman opened this issue Nov 30, 2017 · 1 comment

Comments

@jhorsman
Copy link
Contributor

jhorsman commented Nov 30, 2017

The example site in the dxa-web-application-dotnet project uses the DXA Core module. The DLL of the Core module is not available on GitHub though, and the views have to be copied into the Site project manually (or with a post-build step in the Code module project).

This gets messy, especially when following the same pattern in custom modules, and using multiple module solutions.

The solution is using Razor Generator. I think this is an broadly accepted way to precompile MVC views. See https://github.com/RazorGenerator and https://community.sdl.com/product-groups/sdl-tridion-dx/tridion-sites/tridion-developer/b/weblog/posts/precompile-your-dxa-views-with-razor-generator.

Combined with a NuGet package for the DXA Core module, this would make it way easier to work with multi-module DXA solutions.

@bkoopman
Copy link
Contributor

bkoopman commented Dec 1, 2017

Interesting, for starters I think we need to think about of we perhaps should have made the core module itself also available on https://github.com/sdl/dxa-modules/releases
If I'm not mistaking the core module is available in the download of DXA itself, since you can install it so technically it is actually available from GitHub already/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants