Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    razor-clipublic

    razor-cli-node

    Compile Razor templates

    Requires a working .NET runtime. You can use Mono on Mac and Windows.

    Install

    npm install -g razor-cli

    Usage

    It works on the convention that you have a directory containing pairs of files on the form _component.cshtml and _component.example.json. Running razor-cli --partials Views/partials --output build/partials will then output a single html file (such as _component.html) per pair.

    Help needed!

    In its current form, this is little more than a proof of concept. We have a wrapper around a utility using .NET libraries, which is the the piece actually doing the work.

    The basic functionality is in place, but we need better error handling. Most substantial improvements will be probably end up in the .NET utility.

    Keywords

    none

    install

    npm i razor-cli

    Downloadsweekly downloads

    0

    version

    0.2.9

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar