This repo contains a reference implementation to map data with RazorLight.
Following paragraphs are a breakdown of the projects in this repo.
razorlight-components project
Core class-library that contains:
- Templates for the templates in Razor format.
- TemplateHelper for .NET helpers to streamline mappings.
- ViewModel for the Razor ViewModels. Each
template
uses oneViewModel
. - DataSamples as demo inputs for the provided templates.
razorlight-console project
Implements razorlight-components and outputs mappings to the console.
razorlight-func project
Implements razorlight-components and is deployable to an Azure Function App. The function xmlMap
returns the xml
-map output via RazorLight.
Precompiles the maps asynchronously, before the function app even runs, via the RazorLightTemplatePrecompiler.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.