repl.it
@dotcomboom/

AutoSite Boilerplate

Python

AutoSite helps you keep all of your website's pages in the same basic template. More information @ https://github.com/dotcomboom/AutoSite

fork
loading
Files
  • main.py
  • in
  • includes
  • out
  • templates
  • AutoSite.py
  • Packager files
  • requirements.txt
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env python3
import os

# Feel free to fork this repl and build your site off of it!

# Looking for AutoSite resources?
#    - https://github.com/dotcomboom/AutoSite is the Github repository. When you need to update the AutoSite script in the repl, just copy the code from https://raw.githubusercontent.com/dotcomboom/AutoSite/master/AutoSite/__init__.py.
#    - https://pypi.org/project/AutoSite/ is information on using AutoSite as a package (when installed on your system, you can just run "autosite" in the terminal with any arguments to use it)
#    - https://autosite.neocities.org/ provides an excellent guide on making the most out of AutoSite. I've also uploaded the working copy at https://repl.it/@dotcomboom/AutoSite-Manual so you can see it in action.

# List of arguments
os.system("python3 AutoSite.py -h")
# You can change the arguments below.
# -a means to run the script automatically without user confirmation, which is useful in a repl with a web server.
os.system("python3 AutoSite.py -a")

# Running the web server!
os.system("cd out && python3 -m http.server")
?