a basic website generator written in elixir https://ella.wantscuddl.es
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ella cdee9a9019 im gay 2 months ago
lib im gay 2 months ago
.gitignore im gay 2 months ago
README.md im gay 2 months ago
example-gen-conf im gay 2 months ago
mix.exs im gay 2 months ago

README.md

Webgen

hi this is a very simple program for merging a text file into a webpage

it was only made for my webbed sight at https://ella.wantscuddl.es/

if you for whatever reason want to use this for your own pages

  • first edit mix.exs line 16 to use your desired path
  • then create a file called “gen-conf” in that directory (use the example-gen-conf file included as an example). the first line is the “base website” that is going to be used. on following lines, write the relative path to files you want to merge into webpages
  • now you can, in the same directory, create files with the website content
  • when running the program (open a shell, cd to here and type mix run) it should save the files as $file.html

help what are the $ things??

  • $title - the title, which is the first line of content files
  • $first - the first line of the page, with tags stripped away
  • $file - the relative path without index/ as the first characters
  • $content - the page body refer to example-gen-conf for an example

if something here does not make sense, you can ask me for help, preferably at https://hellsite.site/@ella