Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 26, 2021. It is now read-only.

fatso83/razor-cli-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

34 Commits

Repository files navigation

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.

About

NodeJS utility to compile ASP.NET Razor templates on Linux, Mac or Windows.

Resources

License

Stars

Watchers

Forks

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /