---
title: "Discussion on \"Using Razor Outside of Web\" | Hashnode"
description: "Discussion on \"Using Razor Outside of Web\". Repurposing the Razor Templating Engine to Generate HTML in a Console Application"
url: "https://hashnode.com/posts/using-razor-outside-of-web/65c1525e417b96cdb95bc0c7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Using Razor Outside of Web](https://denace.dev/using-razor-outside-of-web?utm_source=hashnode&utm_medium=feed)

Repurposing the Razor Templating Engine to Generate HTML in a Console Application

Feb 1, 2024 · 7 min read · denace.dev  
Read the article

-   [#razor](https://hashnode.com/tag/razor)
-   [#blazor](https://hashnode.com/tag/blazor)
-   [#csharp](https://hashnode.com/tag/csharp)
-   [#aspnet-core](https://hashnode.com/tag/aspnet-core)
-   [#render-html](https://hashnode.com/tag/render-html)

## Written by

[Denis Ekart](https://hashnode.com/@devmenace)

@devmenace · Slovenia, Europe

  
[View profile](https://hashnode.com/@devmenace)

Creating value through knowledge, skill, and dedication

I am a highly motivated and innovative software engineer with almost a decade of professional experience in software design and development. My main interests include architecting performant cloud-native solutions and optimizing the development experience for myself and my colleagues. I have extensive knowledge and understanding of the .NET ecosystem, including ample expertise in cloud technologies such as Microsoft Azure. In my spare time, I enjoy improving myself and the community by contributing to free and open-source software.

## Responses 1

Markdown supported · ⌘↵ to post

[John Zabroski](https://hashnode.com/@johnzabroski)

[May 5, 2025](https://hashnode.com/posts/using-razor-outside-of-web/65c1525e417b96cdb95bc0c7/comment/681937334a40c3f332008a2e)

It's worth noting that HtmlRenderer is a very heavyweight component and includes everything required to render Razor Components (Blazor Components). If you just need something simpler, you can use RazorSlices. It won't have tag helpers (and view components), but you may not need all that other stuff. For background, I used to be the maintainer of RazorLight, which was the most popular Razor renderer many years ago. I stopped support around .NET 6 as Microsoft was making it progressively more difficult to have Razor function standalone, and I was no longer actively doing web development.
