Components
Modifiers
Video Player
Paragraph Component
Как создать новый компонент
STATIC SHARP
Component oriented static-site generator extendable with C#
CO
Welcome to StaticSharp! We believe in getting right to the point, so here is the code from this very page.
Component-based development is like a Lego set for your website! You get to use pre-made blocks (components) and snap them together, or even create your own custom bricks to build the site of your dreams. Plus, it's super scalable and easy to update. Bye-bye, clunky websites - hello, sleek and modern web creations!
COPYPASTEABLE FROM
Copy-pasteability is the superpower of code - it allows developers to reuse and share code like a boss, saving time and effort in the software development process. No-code or low-code platforms might have their own superpowers, but when it comes to flexibility and customization, code-based approaches reign supreme. So go forth, dear developer, and copy-paste to your heart's content!
CREATE YOUR OWN
For example, on this page, there are colored words in the headings. You can write full formatting in each case or you can create a function that highlights all capital letters with a given color and makes all lowercase letters capitalized.
In this case it is an extension method for type
BRING IT WITH
All of these shortcuts and components can be wrapped in NuGet packages, so that everyone (including you in the future) can add them to their new site with a few clicks.
Yo dawg, we put programming in the text-writing so you can code while you write. By the way, did you know that at the time this page was generated on May 03, 2023, the StaticSharp repository had 3 stars on GitHub?
C# is a strongly-typed language, so the IDE has access to information about the available types and their members in compile-time.
With the introduction of Source Generators in .NET 6, we can even provide IntelliSense for internal links.
Example: This link -> Components is made by
Modern IDEs are like supercharged text editors, making it a breeze to develop a website using the most powerful framework at your fingertips.
Like any static site generator, StaticSharp has a web server mode that allows you to see the site in a browser while you work on it.
One feature we want to show of is the source code navigation directly from your browser. You can
Essentially, your content is part of the code that is executed to create an HTML file. To make changes reflected on the page, the code must be recompiled. However, thanks to the hot-reload feature in .NET, such changes are applied instantly and do not require full recompilation.
In addition, StaticSharp in developer mode provides hot reloading of all resources used on the page. All images, videos, JavaScript, text files, and code examples will be reloaded when they are modified.
ANY
This website has been created using StaticSharp