htmlc 1.0.14
See the version list below for details.
dotnet tool install --global htmlc --version 1.0.14
dotnet new tool-manifest
dotnet tool install --local htmlc --version 1.0.14
#tool dotnet:?package=htmlc&version=1.0.14
nuke :add-package htmlc --version 1.0.14
html-compiler-tool
<a href="https://www.buymeacoffee.com/lk.code" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
This is the HTML Compiler Tool for your cli
install the tool
dotnet tool install --global htmlc
update the tool
dotnet tool update --global htmlc
usage
compile a single file
generates HTML from the template file demo.html and writes it into the folder ".\output" with the same file name ".\output\demo.html":<br />
htmlc compile .\source\demo.html .\output\
generates HTML from the template file test.html and writes it into the file ".\output\sample.html":<br />
htmlc compile .\source\test.html .\output\sample.html
specify a template file
this file contains only the individual content:
@Layout=_layout.html
<br />
<section>
<br />
<div>Hello again</div>
<br />
</section>
<br />
important: add the @Layout-element to specify which file the layout is in.
specify a layout file
The layout file contains the HTML framework, which is identical for all generated files:<br />
<html>
<br />
<head>
<br />
...
<br />
</head>
<br />
<body>
<br />
@Body
<br />
</body>
<br />
</html>
<br />
important: add the @Body-element to specify where the content of the page should be written.
generated output
The above example generates the following code:
<html>
<br />
<head>
<br />
...
<br />
</head>
<br />
<body>
<br />
<section>
<br />
<div>Hello again</div>
<br />
</section>
<br />
</body>
<br />
</html>
<br />
watch your project directory
You can monitor your whole HTML project directory and compile it automatically. There are two options:
- you specify only the path to the project folder. In this folder htmlc will look for /src and /dist (or will create these two folders). Under /src htmlc will monitor for file changes. /dist is used as output directory for the compiler:
htmlc watch .\path\to\source\
- you specify the source directory and the output directory. These then behave like /src and /dist:
htmlc watch .\path\to\source\ .\path\to\output\
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
Version | Downloads | Last Updated |
---|---|---|
1.0.156 | 701 | 12/3/2023 |
1.0.155 | 293 | 11/8/2023 |
1.0.154 | 390 | 11/6/2023 |
1.0.153 | 338 | 11/6/2023 |
1.0.149 | 269 | 10/10/2023 |
1.0.148 | 234 | 10/9/2023 |
1.0.147 | 198 | 10/6/2023 |
1.0.146 | 200 | 10/6/2023 |
1.0.145 | 226 | 10/4/2023 |
1.0.144 | 286 | 9/28/2023 |
1.0.143 | 238 | 9/28/2023 |
1.0.142 | 233 | 9/27/2023 |
1.0.141 | 317 | 9/27/2023 |
1.0.140 | 218 | 9/27/2023 |
1.0.139 | 240 | 9/24/2023 |
1.0.137 | 230 | 9/23/2023 |
1.0.136 | 285 | 9/19/2023 |
1.0.135 | 209 | 9/19/2023 |
1.0.133 | 253 | 9/19/2023 |
1.0.132 | 303 | 9/19/2023 |
1.0.131 | 204 | 9/19/2023 |
1.0.128 | 276 | 9/17/2023 |
1.0.124 | 218 | 9/7/2023 |
1.0.121 | 280 | 9/6/2023 |
1.0.117 | 248 | 8/27/2023 |
1.0.115 | 745 | 8/11/2023 |
1.0.114 | 626 | 8/2/2023 |
1.0.112 | 479 | 7/29/2023 |
1.0.109 | 527 | 7/26/2023 |
1.0.107 | 479 | 7/26/2023 |
1.0.106 | 486 | 7/24/2023 |
1.0.72 | 816 | 2/17/2023 |
1.0.70 | 633 | 2/17/2023 |
1.0.69 | 774 | 2/17/2023 |
1.0.68 | 724 | 2/17/2023 |
1.0.66 | 735 | 2/17/2023 |
1.0.64 | 692 | 2/10/2023 |
1.0.63 | 784 | 1/23/2023 |
1.0.62 | 884 | 1/23/2023 |
1.0.61 | 867 | 1/23/2023 |
1.0.60 | 886 | 1/23/2023 |
1.0.59 | 741 | 1/23/2023 |
1.0.58 | 739 | 1/21/2023 |
1.0.57 | 777 | 1/21/2023 |
1.0.56 | 835 | 1/21/2023 |
1.0.55 | 698 | 1/21/2023 |
1.0.54 | 787 | 1/21/2023 |
1.0.53 | 686 | 1/21/2023 |
1.0.52 | 757 | 1/21/2023 |
1.0.51 | 841 | 1/6/2023 |
1.0.50 | 752 | 1/6/2023 |
1.0.49 | 873 | 1/5/2023 |
1.0.48 | 825 | 1/5/2023 |
1.0.47 | 871 | 1/5/2023 |
1.0.46 | 922 | 1/5/2023 |
1.0.45 | 875 | 1/5/2023 |
1.0.44 | 942 | 1/5/2023 |
1.0.43 | 962 | 1/4/2023 |
1.0.42 | 846 | 1/4/2023 |
1.0.41 | 946 | 1/4/2023 |
1.0.40 | 871 | 1/4/2023 |
1.0.39 | 892 | 1/4/2023 |
1.0.38 | 927 | 1/4/2023 |
1.0.37 | 856 | 1/4/2023 |
1.0.36 | 849 | 1/4/2023 |
1.0.35 | 840 | 1/3/2023 |
1.0.34 | 911 | 1/3/2023 |
1.0.33 | 949 | 1/3/2023 |
1.0.32 | 908 | 1/3/2023 |
1.0.31 | 807 | 1/2/2023 |
1.0.30 | 813 | 1/2/2023 |
1.0.29 | 812 | 1/2/2023 |
1.0.28 | 873 | 1/2/2023 |
1.0.27 | 916 | 1/1/2023 |
1.0.26 | 867 | 1/1/2023 |
1.0.25 | 836 | 1/1/2023 |
1.0.24 | 839 | 1/1/2023 |
1.0.23 | 757 | 1/1/2023 |
1.0.22 | 829 | 1/1/2023 |
1.0.21 | 775 | 1/1/2023 |
1.0.20 | 794 | 1/1/2023 |
1.0.19 | 359 | 12/31/2022 |
1.0.18 | 342 | 12/31/2022 |
1.0.17 | 367 | 12/31/2022 |
1.0.16 | 365 | 12/31/2022 |
1.0.15 | 333 | 12/29/2022 |
1.0.14 | 338 | 12/28/2022 |
1.0.13 | 366 | 12/28/2022 |
1.0.12 | 367 | 12/20/2022 |
1.0.11 | 436 | 11/4/2022 |
1.0.10 | 428 | 11/1/2022 |
1.0.9 | 421 | 11/1/2022 |
1.0.8 | 454 | 10/31/2022 |
1.0.6 | 444 | 8/21/2022 |
1.0.4 | 440 | 8/18/2022 |
1.0.3 | 449 | 8/17/2022 |
1.0.2 | 448 | 8/17/2022 |
1.0.0 | 449 | 8/17/2022 |