Re: Web framework for static pages

2019-08-13 Thread Morten W. Petersen
Hi "DL Neil".

I find your argumentation combative and provoking.

I have an ex that has made my life difficult for the last 6 years, blocking
me from seeing my kids, she acts in a similar way.

I don't have the time, energy or the will to bring more of that stuff into
my life, so I won't reply to this type of email.

-Morten

Blogging at http://blogologue.com
Tweeting at https://twitter.com/blogologue
On Instagram https://instagram.com/morphexx

ons. 14. aug. 2019, 01.27 skrev DL Neil :

> On 13/08/19 10:54 PM, Morten W. Petersen wrote:
> > I was hoping to avoid testing a lot of different systems, spending time
> > there.
>
> Sooner or later you have to make a decision - and be responsible for it
> to your clients.
>
>
> > So that's why I'm asking here.
>
> People here are helpful. The more time you put-in, the more inclined
> folk are to help further.
>
>
> > I don't need a guide to create a website, maybe a refresher on some
> topics.
>
> Respectfully, and knowing only the little posted here, this seems an
> under-statement, eg you don't appear know how HTML5 succeeds and exceeds
> XHTML (and has done so for many years). Do you under-estimate how much
> things have developed during the last decade?
>
>
> > Ideally I'd want a static site generator that makes it easy and quick to
> > create a website which is pretty, accessible, works across browsers and
> > standards compliant and doesn't freeze the browser on a low-end phone.
>
> In, XHTML???
>
> This stuff is not straight-forward. Neither is it Python/a topic for
> this list.
>
> Whilst I place myself in the 'master' category for HTML5 development and
> cheerfully regard manually knocking-out the likes of an "About Us"
> static page using nothing more than a basic editor as "quick and easy",
> there is no room for such 'purity' and idealism when phones and
> 'responsive' elements enter the picture. "Here be dragons"!
>
> I'm wary of claiming such a skill-level in Python - particularly given
> its incredibly wide range of application. That side of the process can
> be simple or complex - you choose.
>
> [this further to comment after next para]
> "Flask" has been mentioned, and over many years Mig has contributed
> numbers of tutorials, videos, articles, and books; which IMHO make it
> easy to understand that package - and most others (in this category). As
> such, I recommend it as a great starting-point, even if that learning
> better-equips you to change to something else later!
> (see also mention in other contributions to this thread)
>
>
> > And where it is easy to override using for example plain or template
> > HTML, or extend programmatic features using some plugins or just
> > subclassing.
>
> Using Python as an 'engine' to generate a web-site, either as a static
> file-set or as part of a web server is relatively trivial. Some of your
> more detailed specs will likely lead you down one or another path. What
> inspiration did you get from reading-up about Flask? Pelican? Other
> suggestions made 'here'? In what way did they not meet the mark?
>
>
> > Do you know of a XML DTD for HTML5 by the way?
>
> See above.
> (How is a web page declared to be HTML5, cf any other format? How does
> one ensure that a web page is 'HTML5-compliant'? How does/can one do
> "pretty" in (X)HTML?)
> --
> Regards =dn
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Web framework for static pages

2019-08-13 Thread DL Neil

On 13/08/19 10:54 PM, Morten W. Petersen wrote:
I was hoping to avoid testing a lot of different systems, spending time 
there.


Sooner or later you have to make a decision - and be responsible for it 
to your clients.




So that's why I'm asking here.


People here are helpful. The more time you put-in, the more inclined 
folk are to help further.




I don't need a guide to create a website, maybe a refresher on some topics.


Respectfully, and knowing only the little posted here, this seems an 
under-statement, eg you don't appear know how HTML5 succeeds and exceeds 
XHTML (and has done so for many years). Do you under-estimate how much 
things have developed during the last decade?



Ideally I'd want a static site generator that makes it easy and quick to 
create a website which is pretty, accessible, works across browsers and 
standards compliant and doesn't freeze the browser on a low-end phone.


In, XHTML???

This stuff is not straight-forward. Neither is it Python/a topic for 
this list.


Whilst I place myself in the 'master' category for HTML5 development and 
cheerfully regard manually knocking-out the likes of an "About Us" 
static page using nothing more than a basic editor as "quick and easy", 
there is no room for such 'purity' and idealism when phones and 
'responsive' elements enter the picture. "Here be dragons"!


I'm wary of claiming such a skill-level in Python - particularly given 
its incredibly wide range of application. That side of the process can 
be simple or complex - you choose.


[this further to comment after next para]
"Flask" has been mentioned, and over many years Mig has contributed 
numbers of tutorials, videos, articles, and books; which IMHO make it 
easy to understand that package - and most others (in this category). As 
such, I recommend it as a great starting-point, even if that learning 
better-equips you to change to something else later!

(see also mention in other contributions to this thread)


And where it is easy to override using for example plain or template 
HTML, or extend programmatic features using some plugins or just 
subclassing.


Using Python as an 'engine' to generate a web-site, either as a static 
file-set or as part of a web server is relatively trivial. Some of your 
more detailed specs will likely lead you down one or another path. What 
inspiration did you get from reading-up about Flask? Pelican? Other 
suggestions made 'here'? In what way did they not meet the mark?




Do you know of a XML DTD for HTML5 by the way?


See above.
(How is a web page declared to be HTML5, cf any other format? How does 
one ensure that a web page is 'HTML5-compliant'? How does/can one do 
"pretty" in (X)HTML?)

--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list


Re: Web framework for static pages

2019-08-13 Thread Joel Goldstick
On Tue, Aug 13, 2019 at 4:12 PM Morten W. Petersen  wrote:
>
> Hi Joel.
>
> I don't disagree with what you're saying, but is there a documented way of 
> making Django produce a neat set of static pages?
>
> It would be nice to use a web application framework to create pages, because 
> it would after that be easy to add a little bit of logic if a customer wants 
> it. A contact form, an order form, etc.

Django has a feature called static pages.. I'm not up to the latest,
but check that you.  Perhaps it will work for you

>
> Zope/Plone has its own set of features and applications I know well, if a 
> customer wants a dynamic website with a lot of logic (dynamic pages).
>
> -Morten
>
> Blogging at http://blogologue.com
> Tweeting at https://twitter.com/blogologue
> On Instagram https://instagram.com/morphexx
>
> tir. 13. aug. 2019, 21.08 skrev Joel Goldstick :
>>
>> On Tue, Aug 13, 2019 at 2:46 PM DL Neil  
>> wrote:
>> >
>> > On 14/08/19 2:26 AM, Grant Edwards wrote:
>> > > On 2019-08-13, Jon Ribbens via Python-list  
>> > > wrote:
>> > >
>> > >> If it's really that small then it sounds like what you are looking for
>> > >> is known as a "text editor".
>> > >
>> > > Bah.  Kids these days.
>> > >
>> > >$ cat > index.hmtl
>> >
>> > [roaring with laughter]
>> >
>> >
>> >
>> > Oh come now. Surely a person with your depth of experience realises that
>> > all cats have moved to Facebook and YouTube, leaving their HTML in
>> > yesterday's litter box?
>> >
>> > --
>> > Regards =dn
>> > --
>> > https://mail.python.org/mailman/listinfo/python-list
>>
>> pardon my drive by comment, but this is close to trolling.  Whatever
>> is offered is shot down.  XHTML seems to have been a road that went
>> nowhere because the browser makers didn't like it.  HTML5 seemed to be
>> a big step forward.  I used a program called Citydesk a long time ago
>> that I think could do what the op might like.  But its long gone.  I
>> think django could be used to make static pages quite easily. Its not
>> hard to learn, and in the event your client wants more, django can do
>> that too
>>
>> --
>> Joel Goldstick
>> http://joelgoldstick.com/blog
>> http://cc-baseballstats.info/stats/birthdays
>> --
>> https://mail.python.org/mailman/listinfo/python-list



-- 
Joel Goldstick
http://joelgoldstick.com/blog
http://cc-baseballstats.info/stats/birthdays
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Web framework for static pages

2019-08-13 Thread Morten W. Petersen
Hi Joel.

I don't disagree with what you're saying, but is there a documented way of
making Django produce a neat set of static pages?

It would be nice to use a web application framework to create pages,
because it would after that be easy to add a little bit of logic if a
customer wants it. A contact form, an order form, etc.

Zope/Plone has its own set of features and applications I know well, if a
customer wants a dynamic website with a lot of logic (dynamic pages).

-Morten

Blogging at http://blogologue.com
Tweeting at https://twitter.com/blogologue
On Instagram https://instagram.com/morphexx

tir. 13. aug. 2019, 21.08 skrev Joel Goldstick :

> On Tue, Aug 13, 2019 at 2:46 PM DL Neil 
> wrote:
> >
> > On 14/08/19 2:26 AM, Grant Edwards wrote:
> > > On 2019-08-13, Jon Ribbens via Python-list 
> wrote:
> > >
> > >> If it's really that small then it sounds like what you are looking for
> > >> is known as a "text editor".
> > >
> > > Bah.  Kids these days.
> > >
> > >$ cat > index.hmtl
> >
> > [roaring with laughter]
> >
> >
> >
> > Oh come now. Surely a person with your depth of experience realises that
> > all cats have moved to Facebook and YouTube, leaving their HTML in
> > yesterday's litter box?
> >
> > --
> > Regards =dn
> > --
> > https://mail.python.org/mailman/listinfo/python-list
>
> pardon my drive by comment, but this is close to trolling.  Whatever
> is offered is shot down.  XHTML seems to have been a road that went
> nowhere because the browser makers didn't like it.  HTML5 seemed to be
> a big step forward.  I used a program called Citydesk a long time ago
> that I think could do what the op might like.  But its long gone.  I
> think django could be used to make static pages quite easily. Its not
> hard to learn, and in the event your client wants more, django can do
> that too
>
> --
> Joel Goldstick
> http://joelgoldstick.com/blog
> http://cc-baseballstats.info/stats/birthdays
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Web framework for static pages

2019-08-13 Thread Joel Goldstick
On Tue, Aug 13, 2019 at 2:46 PM DL Neil  wrote:
>
> On 14/08/19 2:26 AM, Grant Edwards wrote:
> > On 2019-08-13, Jon Ribbens via Python-list  wrote:
> >
> >> If it's really that small then it sounds like what you are looking for
> >> is known as a "text editor".
> >
> > Bah.  Kids these days.
> >
> >$ cat > index.hmtl
>
> [roaring with laughter]
>
>
>
> Oh come now. Surely a person with your depth of experience realises that
> all cats have moved to Facebook and YouTube, leaving their HTML in
> yesterday's litter box?
>
> --
> Regards =dn
> --
> https://mail.python.org/mailman/listinfo/python-list

pardon my drive by comment, but this is close to trolling.  Whatever
is offered is shot down.  XHTML seems to have been a road that went
nowhere because the browser makers didn't like it.  HTML5 seemed to be
a big step forward.  I used a program called Citydesk a long time ago
that I think could do what the op might like.  But its long gone.  I
think django could be used to make static pages quite easily. Its not
hard to learn, and in the event your client wants more, django can do
that too

-- 
Joel Goldstick
http://joelgoldstick.com/blog
http://cc-baseballstats.info/stats/birthdays
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Web framework for static pages

2019-08-13 Thread DL Neil

On 14/08/19 2:26 AM, Grant Edwards wrote:

On 2019-08-13, Jon Ribbens via Python-list  wrote:


If it's really that small then it sounds like what you are looking for
is known as a "text editor".


Bah.  Kids these days.

   $ cat > index.hmtl


[roaring with laughter]



Oh come now. Surely a person with your depth of experience realises that 
all cats have moved to Facebook and YouTube, leaving their HTML in 
yesterday's litter box?


--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list


Re: Web framework for static pages

2019-08-13 Thread Brian Oney via Python-list



On August 13, 2019 4:00:30 PM GMT+02:00, "Morten W. Petersen" 
 wrote:
>Ok. Isn't it a bit splitting of hairs to talk about static site
>generators
>and their templates?
>
>Wouldn't a static site generator that can create a good, usable website
>with little input be desirable?
>
>I could pick and choose CSS templates, HTML templates and write some of
>my
>own, but that takes quite a bit of time.
>
>Yes, my fixation on XML HTML might be a bit purist or perfectionist,
>but
>isn't it strange that there isn't a DTD for XML HTML 5? Is it the
>ability
>to write websites using a text editor only what makes web companies
>continue the malformed input cycle, or is it legacy websites?
>
>-Morten

It's all text. Or do you have a better suggestion?

What is wrong with templates?


 
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Web framework for static pages

2019-08-13 Thread Jon Ribbens via Python-list
On 2019-08-13, Morten W. Petersen  wrote:
> Ok. Isn't it a bit splitting of hairs to talk about static site generators
> and their templates?

No, not even slightly. You appear to be thinking that static site
generators come with a pre-made set of design templates, and as
far as I am aware they generally do not.

> Wouldn't a static site generator that can create a good, usable website
> with little input be desirable?

That's the purpose of all of them I should imagine.

> I could pick and choose CSS templates, HTML templates and write some of my
> own, but that takes quite a bit of time.

It's time you need to spend. Otherwise, use Wordpress, optionally
with a static site generator plugin.

> Yes, my fixation on XML HTML might be a bit purist or perfectionist, but
> isn't it strange that there isn't a DTD for XML HTML 5? Is it the ability
> to write websites using a text editor only what makes web companies
> continue the malformed input cycle, or is it legacy websites?

I'm not sure why you think that using XML is in any way "pure" or
"perfect", nor why not using XML means your input is "malformed".
Just use HTML 5, and indeed you should check your code to ensure
it is pure, perfect and well-formed.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Web framework for static pages

2019-08-13 Thread Morten W. Petersen
HMTL? Good you weren't in cat input after a newline. 

-Morten

Blogging at http://blogologue.com
Tweeting at https://twitter.com/blogologue
On Instagram https://instagram.com/morphexx

tir. 13. aug. 2019, 16.28 skrev Grant Edwards :

> On 2019-08-13, Jon Ribbens via Python-list  wrote:
>
> > If it's really that small then it sounds like what you are looking for
> > is known as a "text editor".
>
> Bah.  Kids these days.
>
>   $ cat > index.hmtl
>
> --
> Grant Edwards   grant.b.edwardsYow! My vaseline is
>   at   RUNNING...
>   gmail.com
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Web framework for static pages

2019-08-13 Thread Grant Edwards
On 2019-08-13, Jon Ribbens via Python-list  wrote:

> If it's really that small then it sounds like what you are looking for
> is known as a "text editor".

Bah.  Kids these days.

  $ cat > index.hmtl

-- 
Grant Edwards   grant.b.edwardsYow! My vaseline is
  at   RUNNING...
  gmail.com

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Web framework for static pages

2019-08-13 Thread Morten W. Petersen
Ok. Isn't it a bit splitting of hairs to talk about static site generators
and their templates?

Wouldn't a static site generator that can create a good, usable website
with little input be desirable?

I could pick and choose CSS templates, HTML templates and write some of my
own, but that takes quite a bit of time.

Yes, my fixation on XML HTML might be a bit purist or perfectionist, but
isn't it strange that there isn't a DTD for XML HTML 5? Is it the ability
to write websites using a text editor only what makes web companies
continue the malformed input cycle, or is it legacy websites?

-Morten

Blogging at http://blogologue.com
Tweeting at https://twitter.com/blogologue
On Instagram https://instagram.com/morphexx

tir. 13. aug. 2019, 14.32 skrev Jon Ribbens via Python-list <
python-list@python.org>:

> On 2019-08-13, Morten W. Petersen  wrote:
> > Ideally I'd want a static site generator that makes it easy and quick to
> > create a website which is pretty, accessible, works across browsers and
> > standards compliant and doesn't freeze the browser on a low-end phone.
>
> That isn't what they do. All those requirements are to do with the
> HTML templates that you use for the site, regardless of whether it's
> a static or dynamic site.
>
> > Do you know of a XML DTD for HTML5 by the way?
>
> There isn't one. However I would very strongly recommend NOT using
> XHTML. Nobody uses XHTML and no browsers support it except inasmuch
> as they parse it by pretending it's HTML. Just use the HTML
> representation of HTML 5.
>
> I think the most commonly-used static site generator is probably
> Jekyll. It's in Ruby but that's basically irrelevant unless you're
> a Jekyll developer - as a user you just use the Liquid templating
> system, which is more-or-less identical to Django's.
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Web framework for static pages

2019-08-13 Thread Morten W. Petersen
Ok, will take a look at those.

-Morten

Blogging at http://blogologue.com
Tweeting at https://twitter.com/blogologue
On Instagram https://instagram.com/morphexx

tir. 13. aug. 2019, 14.39 skrev Jan Erik Moström :

> On 13 Aug 2019, at 12:54, Morten W. Petersen wrote:
>
> > I was hoping to avoid testing a lot of different systems, spending time
> > there.
>
> Depending on your needs I would look at Hugo or Pelican
>
> = jem
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Web framework for static pages

2019-08-13 Thread Jon Ribbens via Python-list
On 2019-08-13, Morten W. Petersen  wrote:
> Ideally I'd want a static site generator that makes it easy and quick to
> create a website which is pretty, accessible, works across browsers and
> standards compliant and doesn't freeze the browser on a low-end phone.

That isn't what they do. All those requirements are to do with the
HTML templates that you use for the site, regardless of whether it's
a static or dynamic site.

> Do you know of a XML DTD for HTML5 by the way?

There isn't one. However I would very strongly recommend NOT using
XHTML. Nobody uses XHTML and no browsers support it except inasmuch
as they parse it by pretending it's HTML. Just use the HTML
representation of HTML 5.

I think the most commonly-used static site generator is probably
Jekyll. It's in Ruby but that's basically irrelevant unless you're
a Jekyll developer - as a user you just use the Liquid templating
system, which is more-or-less identical to Django's.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Web framework for static pages

2019-08-13 Thread Morten W. Petersen
I was hoping to avoid testing a lot of different systems, spending time
there.

So that's why I'm asking here.

I don't need a guide to create a website, maybe a refresher on some topics.

Ideally I'd want a static site generator that makes it easy and quick to
create a website which is pretty, accessible, works across browsers and
standards compliant and doesn't freeze the browser on a low-end phone.

And where it is easy to override using for example plain or template HTML,
or extend programmatic features using some plugins or just subclassing.

Do you know of a XML DTD for HTML5 by the way?

-Morten

Blogging at http://blogologue.com
Tweeting at https://twitter.com/blogologue
On Instagram https://instagram.com/morphexx

tir. 13. aug. 2019, 11.39 skrev DL Neil :

> On 13/08/19 10:01 AM, Morten W. Petersen wrote:
> > On 12.08.2019 18:13, Brian Oney wrote:
> >> On August 12, 2019 9:14:55 AM GMT+02:00, morphex 
> >> wrote:
> >>> Hi.
> >>> What frameworks are there for generating static web pages in Python?
> >> I have used:
> >> https://github.com/Frozen-Flask/Frozen-Flask
> >> It's pretty simple. Develop with flask and then "freeze" it.
> >>
> >> I am looking forward to further answers.
> >
> > OK, so now I know Flask can freeze applications. With Zope and Plone, I
> > have a lot of what I need in terms of web application development.
> >
> > What I guess I'm looking for, is something that will help create a
> > static website, in a simple and efficient manner.  Without being bloated.
>
> Which have you examined and rejected/like?
>
>
> > I don't have a lot of hair on my head, but I would be pulling it out
> > because of some of the websites I see today, their heavy-handed use of
> > different Javascript frameworks etc.
>
> True!
>
>
> > How would I go about creating a simple website with a front page, an
> > about page, a product page and a contact page?  Without any server-side
> > handling of data, so it could be entirely served by for example Apache.
>
> There are a thousand and one web-sites and training courses which
> discuss these topics!
>
>
> > And with it having well-formed XHTML, proper CSS, little Javascript,
> > scaling to different screen and web browsers (wow, it's been so long I
> > forgot it was called responsive design) and so on, being a nice little
> > package.
>
> Don't even think about XHTML. HTML5!
>
> Yes, "responsive".
>
>
> As said, there's plenty 'out there'. Today's InBox included reference to
>   << Static site generator that supports Markdown and reST syntax. Powered by
> Python.>>>
> https://github.com/getpelican
>
> It seems they make good use of a number of Python features, which will
> presumably reduce learning-time for Pythonista!
> --
> Regards =dn
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Web framework for static pages

2019-08-13 Thread Morten W. Petersen
Yes. Well, one of the ideas of the web is being able to create a website
using simple tools like that. And I like that idea.

And for one site, either small or very specialized and well-funded, that
would be an OK choice.

However, I want to offer customers websites that cover their needs, without
costing too much.

Also, apart from taking a lot of time, manually changing different websites
using a text editor is tedious and error-prone.

-Morten

Blogging at http://blogologue.com
Tweeting at https://twitter.com/blogologue
On Instagram https://instagram.com/morphexx

tir. 13. aug. 2019, 02.17 skrev Jon Ribbens via Python-list <
python-list@python.org>:

> On 2019-08-12, Morten W. Petersen  wrote:
> > What I guess I'm looking for, is something that will help create a
> > static website, in a simple and efficient manner.  Without being bloated.
> >
> > I don't have a lot of hair on my head, but I would be pulling it out
> > because of some of the websites I see today, their heavy-handed use of
> > different Javascript frameworks etc.
> >
> > How would I go about creating a simple website with a front page, an
> > about page, a product page and a contact page?  Without any server-side
> > handling of data, so it could be entirely served by for example Apache.
>
> If it's really that small then it sounds like what you are looking for
> is known as a "text editor".
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Web framework for static pages

2019-08-13 Thread Morten W. Petersen
Right. That was a useful term, I've got some things to look at there.

-Morten

Blogging at http://blogologue.com
Tweeting at https://twitter.com/blogologue
On Instagram https://instagram.com/morphexx

tir. 13. aug. 2019, 00.29 skrev Cameron Simpson :

> On 13Aug2019 00:01, Morten W. Petersen  wrote:
> >What I guess I'm looking for, is something that will help create a
> >static website, in a simple and efficient manner.  Without being
> >bloated.
> >
> >I don't have a lot of hair on my head, but I would be pulling it out
> >because of some of the websites I see today, their heavy-handed use of
> >different Javascript frameworks etc.
> >
> >How would I go about creating a simple website with a front page, an
> >about page, a product page and a contact page?  Without any
> >server-side handling of data, so it could be entirely served by for
> >example Apache.
> >
> >And with it having well-formed XHTML, proper CSS, little Javascript,
> >scaling to different screen and web browsers (wow, it's been so long I
> >forgot it was called responsive design) and so on, being a nice little
> >package.
>
> The common search term is "static site generator". There are several out
> there. I haven't any experience with which to offer an opinion though.
>
> Cheers,
> Cameron Simpson 
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Web framework for static pages

2019-08-13 Thread DL Neil

On 13/08/19 10:01 AM, Morten W. Petersen wrote:

On 12.08.2019 18:13, Brian Oney wrote:
On August 12, 2019 9:14:55 AM GMT+02:00, morphex  
wrote:

Hi.
What frameworks are there for generating static web pages in Python?

I have used:
https://github.com/Frozen-Flask/Frozen-Flask
It's pretty simple. Develop with flask and then "freeze" it.

I am looking forward to further answers.


OK, so now I know Flask can freeze applications. With Zope and Plone, I 
have a lot of what I need in terms of web application development.


What I guess I'm looking for, is something that will help create a 
static website, in a simple and efficient manner.  Without being bloated.


Which have you examined and rejected/like?


I don't have a lot of hair on my head, but I would be pulling it out 
because of some of the websites I see today, their heavy-handed use of 
different Javascript frameworks etc.


True!


How would I go about creating a simple website with a front page, an 
about page, a product page and a contact page?  Without any server-side 
handling of data, so it could be entirely served by for example Apache.


There are a thousand and one web-sites and training courses which 
discuss these topics!



And with it having well-formed XHTML, proper CSS, little Javascript, 
scaling to different screen and web browsers (wow, it's been so long I 
forgot it was called responsive design) and so on, being a nice little 
package.


Don't even think about XHTML. HTML5!

Yes, "responsive".


As said, there's plenty 'out there'. Today's InBox included reference to 
 <>>

https://github.com/getpelican

It seems they make good use of a number of Python features, which will 
presumably reduce learning-time for Pythonista!

--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list


Re: Web framework for static pages

2019-08-12 Thread Jon Ribbens via Python-list
On 2019-08-12, Morten W. Petersen  wrote:
> What I guess I'm looking for, is something that will help create a 
> static website, in a simple and efficient manner.  Without being bloated.
>
> I don't have a lot of hair on my head, but I would be pulling it out 
> because of some of the websites I see today, their heavy-handed use of 
> different Javascript frameworks etc.
>
> How would I go about creating a simple website with a front page, an 
> about page, a product page and a contact page?  Without any server-side 
> handling of data, so it could be entirely served by for example Apache.

If it's really that small then it sounds like what you are looking for
is known as a "text editor".
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Web framework for static pages

2019-08-12 Thread Cameron Simpson

On 13Aug2019 00:01, Morten W. Petersen  wrote:
What I guess I'm looking for, is something that will help create a 
static website, in a simple and efficient manner.  Without being 
bloated.


I don't have a lot of hair on my head, but I would be pulling it out 
because of some of the websites I see today, their heavy-handed use of 
different Javascript frameworks etc.


How would I go about creating a simple website with a front page, an 
about page, a product page and a contact page?  Without any 
server-side handling of data, so it could be entirely served by for 
example Apache.


And with it having well-formed XHTML, proper CSS, little Javascript, 
scaling to different screen and web browsers (wow, it's been so long I 
forgot it was called responsive design) and so on, being a nice little 
package.


The common search term is "static site generator". There are several out 
there. I haven't any experience with which to offer an opinion though.


Cheers,
Cameron Simpson 
--
https://mail.python.org/mailman/listinfo/python-list


Re: Web framework for static pages

2019-08-12 Thread Morten W. Petersen

On 12.08.2019 18:13, Brian Oney wrote:



On August 12, 2019 9:14:55 AM GMT+02:00, morphex  wrote:

Hi.




What frameworks are there for generating static web pages in Python?


I have used:
https://github.com/Frozen-Flask/Frozen-Flask

It's pretty simple. Develop with flask and then "freeze" it.

I am looking forward to further answers.


OK, so now I know Flask can freeze applications. With Zope and Plone, I 
have a lot of what I need in terms of web application development.


What I guess I'm looking for, is something that will help create a 
static website, in a simple and efficient manner.  Without being bloated.


I don't have a lot of hair on my head, but I would be pulling it out 
because of some of the websites I see today, their heavy-handed use of 
different Javascript frameworks etc.


How would I go about creating a simple website with a front page, an 
about page, a product page and a contact page?  Without any server-side 
handling of data, so it could be entirely served by for example Apache.


And with it having well-formed XHTML, proper CSS, little Javascript, 
scaling to different screen and web browsers (wow, it's been so long I 
forgot it was called responsive design) and so on, being a nice little 
package.


-Morten
--
https://mail.python.org/mailman/listinfo/python-list


Re: Web framework for static pages

2019-08-12 Thread morphex
Why Google it, when I have an Oracle? 

-Morten
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Web framework for static pages

2019-08-12 Thread Michael Torrie
On 8/12/19 1:14 AM, morphex wrote:
> What frameworks are there for generating static web pages in Python? What are 
> the features of each?

A quick google search reveals a number of them.  Pelican, Hyde, etc.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Web framework for static pages

2019-08-12 Thread Brian Oney via Python-list



On August 12, 2019 9:14:55 AM GMT+02:00, morphex  wrote:
>Hi.
>

>What frameworks are there for generating static web pages in Python?

I have used:
https://github.com/Frozen-Flask/Frozen-Flask

It's pretty simple. Develop with flask and then "freeze" it.

I am looking forward to further answers.

HTH
-- 
https://mail.python.org/mailman/listinfo/python-list


Web framework for static pages

2019-08-12 Thread morphex
Hi.

After a long break, I'm starting to work with web development again, in my 
company Nidelven IT.

http://www.nidelven-it.no

I've used Zope and Plone since the early days, as well as other web systems / 
frameworks, Python-based, some PHP, Java etc.

However, I would like to add another tool to my toolbox, another weapon to the 
arsenal..

Some customers would want static pages, and that's something I want to offer.

What frameworks are there for generating static web pages in Python? What are 
the features of each?

Thanks,

Morten
-- 
https://mail.python.org/mailman/listinfo/python-list