euank / rms.sexy

The source code for the sexiest .sexy domain
https://rms.sexy/
GNU Affero General Public License v3.0
64 stars 4 forks source link

Store index.html as a file #12

Closed euank closed 6 years ago

euank commented 6 years ago

This moves it from being inline in the rust code to being a templated file.

Minimal templating is done by search/replace of values in rust.

This is to make it easier for someone else to read or edit the html.

cc @Mechazawa since this is per your suggestion.

Mechazawa commented 6 years ago

Looking good! I didn’t think of this option. It’s by far superior in this case.

On 1 Sep 2018, at 00:11, Euan Kemp notifications@github.com wrote:

This moves it from being inline in the rust code to being a templated file.

Minimal templating is done by search/replace of values in rust.

This is to make it easier for someone else to read or edit the html.

cc @Mechazawa since this is per your suggestion.

You can view, comment on, or merge this pull request online at:

https://github.com/euank/rms.sexy/pull/12

Commit Summary

Store index.html as a file File Changes

A src/index.html.tmpl (25) M src/main.rs (40) Patch Links:

https://github.com/euank/rms.sexy/pull/12.patch https://github.com/euank/rms.sexy/pull/12.diff — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.