You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<em>without</em> any additional dependencies such as a
3026
3026
<ahref="/wsgi-server.html">WSGI server</a>.</p>
3027
-
<h2>Why are static website generators useful?</h2>
3028
-
<p><ahref="/static-content.html">Static content files</a> such as HTML, CSS, JavaScript
3027
+
<h2>Why are static site generators useful?</h2>
3028
+
<p><ahref="/static-content.html">Static content files</a> such as HTML, CSS and JavaScript
3029
3029
can be served from a content delivery network (CDN) for high scale and low
3030
-
cost. If a statically generated website is hit by high concurrent traffic
3031
-
it will be easily served by the CDN without dropped connections. </p>
3030
+
cost. If a statically generated website is hit by high concurrent traffic it
3031
+
will be easily served by the CDN without dropped connections. </p>
3032
3032
<p>For example, when
3033
3033
<ahref="https://news.ycombinator.com/item?id=7985692">Full Stack Python was on the top of Hacker News</a>
3034
3034
for a weekend, <ahref="https://pages.github.com/">GitHub Pages</a> was used as a CDN
@@ -3046,7 +3046,22 @@ <h2>How do static website generators work?</h2>
3046
3046
generator can take in reStructuredText files and Jinja2 template files
3047
3047
as input then combine them to output a set of static HTML files.</p>
3048
3048
<p><imgsrc="theme/img/pelican-flow.jpg" width="100%" alt="Example of how static site generators work with a markup language and templates." class="technical-diagram"></a></p>
3049
-
<h2>Python static site generators</h2>
3049
+
<h2>What's the downside to using static site generators?</h2>
3050
+
<p>The major downside is that the code is not dynamic, so you won't be able to
3051
+
do many seemingly-necessary tasks provided by running an application created
3052
+
with a traditional <ahref="/web-frameworks.html">web framework</a>. Any content that
3053
+
is typically powered by a database, such as comments, sessions and user data
3054
+
can only be done through third party services. For example, if you want to
3055
+
have comments on a static website you'd need to
3056
+
<ahref="https://disqus.com/">embed Disqus's form</a> and be completely reliant upon
3057
+
their service.</p>
3058
+
<p>Many web applications simply cannot be built with only a static site generator.
3059
+
However, a static website generator can create part of a site that will be
3060
+
served up by a web server while other pages are handled by the WSGI server.
3061
+
If done right, those web applications have the potential to scale better than
3062
+
if every page is rendered by the WSGI server. The complexity may or may not be
3063
+
worth it for your specific application.</p>
3064
+
<h2>Python static site generator implementations</h2>
3050
3065
<p>Numerous static website generators exist in many different languages. The
3051
3066
ones listed here are primarily coded in Python.</p>
[Static content files](/static-content.html) such as HTML, CSS, JavaScript
18
+
19
+
## Why are static site generators useful?
20
+
[Static content files](/static-content.html) such as HTML, CSS and JavaScript
20
21
can be served from a content delivery network (CDN) for high scale and low
21
-
cost. If a statically generated website is hit by high concurrent traffic
22
-
it will be easily served by the CDN without dropped connections.
22
+
cost. If a statically generated website is hit by high concurrent traffic it
23
+
will be easily served by the CDN without dropped connections.
23
24
24
25
For example, when
25
26
[Full Stack Python was on the top of Hacker News](https://news.ycombinator.com/item?id=7985692)
@@ -45,7 +46,25 @@ as input then combine them to output a set of static HTML files.
45
46
<imgsrc="theme/img/pelican-flow.jpg"width="100%"alt="Example of how static site generators work with a markup language and templates."class="technical-diagram"></a>
46
47
47
48
48
-
## Python static site generators
49
+
## What's the downside to using static site generators?
50
+
The major downside is that the code is not dynamic, so you won't be able to
51
+
do many seemingly-necessary tasks provided by running an application created
52
+
with a traditional [web framework](/web-frameworks.html). Any content that
53
+
is typically powered by a database, such as comments, sessions and user data
54
+
can only be done through third party services. For example, if you want to
55
+
have comments on a static website you'd need to
56
+
[embed Disqus's form](https://disqus.com/) and be completely reliant upon
57
+
their service.
58
+
59
+
Many web applications simply cannot be built with only a static site generator.
60
+
However, a static website generator can create part of a site that will be
61
+
served up by a web server while other pages are handled by the WSGI server.
62
+
If done right, those web applications have the potential to scale better than
63
+
if every page is rendered by the WSGI server. The complexity may or may not be
64
+
worth it for your specific application.
65
+
66
+
67
+
## Python static site generator implementations
49
68
Numerous static website generators exist in many different languages. The
<em>without</em> any additional dependencies such as a
42
42
<ahref="/wsgi-server.html">WSGI server</a>.</p>
43
-
<h2>Why are static website generators useful?</h2>
44
-
<p><ahref="/static-content.html">Static content files</a> such as HTML, CSS, JavaScript
43
+
<h2>Why are static site generators useful?</h2>
44
+
<p><ahref="/static-content.html">Static content files</a> such as HTML, CSS and JavaScript
45
45
can be served from a content delivery network (CDN) for high scale and low
46
-
cost. If a statically generated website is hit by high concurrent traffic
47
-
it will be easily served by the CDN without dropped connections. </p>
46
+
cost. If a statically generated website is hit by high concurrent traffic it
47
+
will be easily served by the CDN without dropped connections. </p>
48
48
<p>For example, when
49
49
<ahref="https://news.ycombinator.com/item?id=7985692">Full Stack Python was on the top of Hacker News</a>
50
50
for a weekend, <ahref="https://pages.github.com/">GitHub Pages</a> was used as a CDN
@@ -62,7 +62,22 @@ <h2>How do static website generators work?</h2>
62
62
generator can take in reStructuredText files and Jinja2 template files
63
63
as input then combine them to output a set of static HTML files.</p>
64
64
<p><imgsrc="theme/img/pelican-flow.jpg" width="100%" alt="Example of how static site generators work with a markup language and templates." class="technical-diagram"></a></p>
65
-
<h2>Python static site generators</h2>
65
+
<h2>What's the downside to using static site generators?</h2>
66
+
<p>The major downside is that the code is not dynamic, so you won't be able to
67
+
do many seemingly-necessary tasks provided by running an application created
68
+
with a traditional <ahref="/web-frameworks.html">web framework</a>. Any content that
69
+
is typically powered by a database, such as comments, sessions and user data
70
+
can only be done through third party services. For example, if you want to
71
+
have comments on a static website you'd need to
72
+
<ahref="https://disqus.com/">embed Disqus's form</a> and be completely reliant upon
73
+
their service.</p>
74
+
<p>Many web applications simply cannot be built with only a static site generator.
75
+
However, a static website generator can create part of a site that will be
76
+
served up by a web server while other pages are handled by the WSGI server.
77
+
If done right, those web applications have the potential to scale better than
78
+
if every page is rendered by the WSGI server. The complexity may or may not be
79
+
worth it for your specific application.</p>
80
+
<h2>Python static site generator implementations</h2>
66
81
<p>Numerous static website generators exist in many different languages. The
67
82
ones listed here are primarily coded in Python.</p>
0 commit comments