~repos /rust-embed

#rust#proc-macro#http

git clone https://pyrossh.dev/repos/rust-embed.git

rust macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev.


file:

examples/public/index.html

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="dist/main.css" />
<script src="dist/main.js"></script>
</head>
<body>
<div class="bor">
<table bgcolor=#f0f0f0 cellspacing=0 class="hh">
<tr>
<td><img src="dist/images/llama.png" align="left"></td>
<td>
<table cellspacing=0>
<tr><td><b>pyros2097</b></td></tr>
<tr><td>Gdx Developer</td></tr>
<tr><td>
"Awesomeness we can has"
</td></tr>
</table>
</td>
</tr>
<tr>
</tr>
</table>
</div>
</body>
</html>