a basic website generator written in elixir
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 Evelyn Paws 4509b9a819 update readme and add licence 8 months ago
lib im gay 2 years ago
.gitignore im gay 2 years ago
LICENSE.md update readme and add licence 8 months ago
README.md update readme and add licence 8 months ago
example-gen-conf im gay 2 years ago
mix.exs im gay 2 years 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 website that is not in use at the moment

documentation may be incomplete

how to use it yourself

  • first edit mix.exs line 16 to use your desired path (i didn't find any better way to solve this)
  • 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
  • two newlines convert to a paragraph break, one newline converts to <br>
  • when running the program (open a shell, cd to here and enter 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 html tags stripped away
  • $file - the relative path without index/ as the first characters
  • $content - the page body without the title refer to example-gen-conf for an example

if something here does not make sense, you can ask me for help, preferably on matrix at @e:lu.gl or at https://transmom.love/@ella