htmlc 1.0.4
See the version list below for details.
dotnet tool install --global htmlc --version 1.0.4
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local htmlc --version 1.0.4
#tool dotnet:?package=htmlc&version=1.0.4
nuke :add-package htmlc --version 1.0.4
html-compiler-tool
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
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 .\source\demo.html .\output\
generates HTML from the template file test.html and writes it into the file ".\output\sample.html":<br />
htmlc .\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 />
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. |
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
1.0.156 | 565 | 12/3/2023 |
1.0.155 | 203 | 11/8/2023 |
1.0.154 | 318 | 11/6/2023 |
1.0.153 | 253 | 11/6/2023 |
1.0.149 | 223 | 10/10/2023 |
1.0.148 | 184 | 10/9/2023 |
1.0.147 | 150 | 10/6/2023 |
1.0.146 | 150 | 10/6/2023 |
1.0.145 | 176 | 10/4/2023 |
1.0.144 | 234 | 9/28/2023 |
1.0.143 | 184 | 9/28/2023 |
1.0.142 | 184 | 9/27/2023 |
1.0.141 | 266 | 9/27/2023 |
1.0.140 | 167 | 9/27/2023 |
1.0.139 | 191 | 9/24/2023 |
1.0.137 | 180 | 9/23/2023 |
1.0.136 | 227 | 9/19/2023 |
1.0.135 | 161 | 9/19/2023 |
1.0.133 | 203 | 9/19/2023 |
1.0.132 | 254 | 9/19/2023 |
1.0.131 | 157 | 9/19/2023 |
1.0.128 | 228 | 9/17/2023 |
1.0.124 | 162 | 9/7/2023 |
1.0.121 | 230 | 9/6/2023 |
1.0.117 | 194 | 8/27/2023 |
1.0.115 | 617 | 8/11/2023 |
1.0.114 | 565 | 8/2/2023 |
1.0.112 | 425 | 7/29/2023 |
1.0.109 | 455 | 7/26/2023 |
1.0.107 | 405 | 7/26/2023 |
1.0.106 | 421 | 7/24/2023 |
1.0.72 | 745 | 2/17/2023 |
1.0.70 | 581 | 2/17/2023 |
1.0.69 | 724 | 2/17/2023 |
1.0.68 | 663 | 2/17/2023 |
1.0.66 | 672 | 2/17/2023 |
1.0.64 | 628 | 2/10/2023 |
1.0.63 | 722 | 1/23/2023 |
1.0.62 | 832 | 1/23/2023 |
1.0.61 | 806 | 1/23/2023 |
1.0.60 | 841 | 1/23/2023 |
1.0.59 | 680 | 1/23/2023 |
1.0.58 | 687 | 1/21/2023 |
1.0.57 | 720 | 1/21/2023 |
1.0.56 | 781 | 1/21/2023 |
1.0.55 | 646 | 1/21/2023 |
1.0.54 | 734 | 1/21/2023 |
1.0.53 | 624 | 1/21/2023 |
1.0.52 | 694 | 1/21/2023 |
1.0.51 | 780 | 1/6/2023 |
1.0.50 | 688 | 1/6/2023 |
1.0.49 | 813 | 1/5/2023 |
1.0.48 | 760 | 1/5/2023 |
1.0.47 | 801 | 1/5/2023 |
1.0.46 | 850 | 1/5/2023 |
1.0.45 | 811 | 1/5/2023 |
1.0.44 | 880 | 1/5/2023 |
1.0.43 | 892 | 1/4/2023 |
1.0.42 | 786 | 1/4/2023 |
1.0.41 | 877 | 1/4/2023 |
1.0.40 | 810 | 1/4/2023 |
1.0.39 | 831 | 1/4/2023 |
1.0.38 | 860 | 1/4/2023 |
1.0.37 | 793 | 1/4/2023 |
1.0.36 | 781 | 1/4/2023 |
1.0.35 | 775 | 1/3/2023 |
1.0.34 | 844 | 1/3/2023 |
1.0.33 | 877 | 1/3/2023 |
1.0.32 | 848 | 1/3/2023 |
1.0.31 | 746 | 1/2/2023 |
1.0.30 | 753 | 1/2/2023 |
1.0.29 | 741 | 1/2/2023 |
1.0.28 | 803 | 1/2/2023 |
1.0.27 | 851 | 1/1/2023 |
1.0.26 | 812 | 1/1/2023 |
1.0.25 | 765 | 1/1/2023 |
1.0.24 | 768 | 1/1/2023 |
1.0.23 | 705 | 1/1/2023 |
1.0.22 | 758 | 1/1/2023 |
1.0.21 | 704 | 1/1/2023 |
1.0.20 | 721 | 1/1/2023 |
1.0.19 | 321 | 12/31/2022 |
1.0.18 | 304 | 12/31/2022 |
1.0.17 | 323 | 12/31/2022 |
1.0.16 | 321 | 12/31/2022 |
1.0.15 | 296 | 12/29/2022 |
1.0.14 | 292 | 12/28/2022 |
1.0.13 | 313 | 12/28/2022 |
1.0.12 | 322 | 12/20/2022 |
1.0.11 | 395 | 11/4/2022 |
1.0.10 | 389 | 11/1/2022 |
1.0.9 | 374 | 11/1/2022 |
1.0.8 | 407 | 10/31/2022 |
1.0.6 | 390 | 8/21/2022 |
1.0.4 | 386 | 8/18/2022 |
1.0.3 | 397 | 8/17/2022 |
1.0.2 | 395 | 8/17/2022 |
1.0.0 | 391 | 8/17/2022 |