# natechoe.dev generator A very simple tool to generate natechoe.dev pages. It's effectively just a generic file preprocessor with HTML some auto escaping. Please not that ncdg minifies HTML so these examples aren't really correct. ## Usage There are only 4 features in ncdg: ### Include statements file1.html ```
@%file2.html@ ``` file2.html ```Content!
``` Result: ```Content!
``` ### Variables file1.html ```Content!
``` Result: ```Content!
``` A variable expansion can go through multiple variables until one is found. file.html ``` @!var1,var2,var3@ @=var2 value@ ``` Result: ``` value ``` var1 doesn't exist, so ncdg moves on to var2, which does exist, and skips var3. ### Automatic escaping ```@\
#include
@
```
Result:
```
#include <stdio.h>
Note that text inside of escaped sections is not minified. Also note taht the
first character after the code is swallowed.
### Excluding minification
```
@&
&
this text isn't minified
@
```
Result:
```
&
this text isn't minified
```
Used for legacy web pages on my site that I don't want to update