orf/simple

License question?

Closed this issue · 6 comments

This isn't as much an issue as it is a question of what the license is simple released under? The reason I ask is that I've been playing around at adapting simple to be a static site generator, but I just realized I don't know what license the code is under.

orf commented

Its released under the WTFPL license. A link back to this repo would be nice somewhere, but that's up to you.

Would it be possible to ship your static site generator with Simple? It might be nice to include a script you can run that pulls posts from the database and generates a static site for you to use.

it would be very easy to adapt what I'm writing to pull from the database and generate a static site. I've mostly been playing with converting the admin interface to save and edit files instead of the db, but the publishing side would work with either.

I think what I will do is to add an option when setting up that asks if you want to store posts on the filesystem or database and go from there. Hopefully I can push up some of the stuff i've been doing this evening or sometime this weekend.

@orf agreed, the pulling from the db sounds great.

we could have a configuration option "

STATIC=<boolean>
".

proposed workflow for static pages: launch simple (it would be forced to localhost only), it directly displays the admin page (without password). And as soon as you save a post, it automatically calls the static site generation method, which would update the static file tree with whatever changes you made.

@binarydud it would be cool if you manage to put it in a single file as well, to match simple's approach. you could call the file "simplyfrozen.py" (just kidding, call it whatever you want ;D)

I'm also interested in making simple a static site generator. How were you thinking of going about this @binarydud ?

Interestingly enough we still don't have a LICENSE.md file. @orf you mentioned the WTFPL. Can I create a file with that in it and push it?

I think now that the project has a LICENSE file, we can close this ticket.