Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cookiecutter-flask
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pierre Paul
cookiecutter-flask
Commits
2528dcd2
Commit
2528dcd2
authored
Jul 29, 2018
by
Pierre Paul
☕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changing default layout and default init values
parent
ab825f6f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
42 deletions
+34
-42
cookiecutter.json
cookiecutter.json
+3
-3
{{cookiecutter.app_name}}/package.json
{{cookiecutter.app_name}}/package.json
+2
-2
{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/layout.html
...pp_name}}/{{cookiecutter.app_name}}/templates/layout.html
+29
-37
No files found.
cookiecutter.json
View file @
2528dcd2
{
"full_name"
:
"
Steven Loria
"
,
"email"
:
"
sloria1@gmai
l.com"
,
"github_username"
:
"
sloria
"
,
"full_name"
:
"
Pierre Paul
"
,
"email"
:
"
info@pierre-pau
l.com"
,
"github_username"
:
"
pierrepaul
"
,
"project_name"
:
"My Flask App"
,
"app_name"
:
"myflaskapp"
,
"project_short_description"
:
"A flasky app."
,
...
...
{{cookiecutter.app_name}}/package.json
View file @
2528dcd2
...
...
@@ -11,7 +11,7 @@
},
"repository"
:
{
"type"
:
"git"
,
"url"
:
"git+https://git
hub
.com/{{cookiecutter.github_username}}/{{cookiecutter.app_name}}.git"
"url"
:
"git+https://git
.pierre-paul
.com/{{cookiecutter.github_username}}/{{cookiecutter.app_name}}.git"
},
"author"
:
"{{cookiecutter.full_name}}"
,
"license"
:
"BSD-3-Clause"
,
...
...
@@ -21,7 +21,7 @@
},
"homepage"
:
"https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.app_name}}#readme"
,
"dependencies"
:
{
"bootstrap"
:
"^
3.3.7
"
,
"bootstrap"
:
"^
4.0.2
"
,
"font-awesome"
:
"^4.7.0"
,
"jquery"
:
"^3.2.1"
},
...
...
{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/layout.html
View file @
2528dcd2
{% raw %}
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
...
...
@@ -8,60 +7,53 @@
<head>
<meta
charset=
"utf-8"
>
<title>
{% block page_title %}
{% endraw %}
{{ cookiecutter.project_name }}
{% raw %}
{% endblock %}
</title>
<title>
{% block page_title %}{% endraw %}{{ cookiecutter.project_name }}{% raw %}{% endblock %}
</title>
<meta
name=
"description"
content=
"{% block meta_description %}{% endblock %}"
>
<meta
name=
"author"
content=
"{% block meta_author %}{% endblock %}"
>
<!-- Mobile viewport optimized: h5bp.com/viewport -->
<meta
name=
"viewport"
content=
"width=device-width"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, shrink-to-fit=no"
>
{{ stylesheet_tag('main_css') | safe }}
{% block css %}{% endblock %}
</head>
<body
class=
"{% block body_class %}{% endblock %}"
>
{% block body %}
{% with form=form %}
{% include "nav.html" %}
{% endwith %}
<header>
{% block header %}{% endblock %}
</header>
<div
class=
"{% block content_class %}container{% endblock content_class %}"
>
<div
role=
"main"
>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<div
class=
"row"
>
<div
class=
"col-md-12"
>
{% for category, message in messages %}
<div
class=
"alert alert-{{ category }}"
>
<a
class=
"close"
title=
"Close"
href=
"#"
data-dismiss=
"alert"
>
×
</a>
{{message}}
</div>
<!-- end .alert -->
{% endfor %}
</div>
<!-- end col-md -->
</div>
<!-- end row -->
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
</div>
</div>
<!-- end container -->
<main
class=
"col-md-9 ml-sm-auto col-lg-10 px-4"
role=
"main"
>
<div
class=
"d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"
>
<h1>
{% block page_title_h1 %}{% endblock %}
</h1>
<div
class=
"btn-toolbar mb-2 mb-md-0"
>
{% block tools %}{% endblock %}
</div>
</div>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<div
class=
"row"
>
<div
class=
"col-12"
>
{% for category, message in messages %}
<div
class=
"alert alert-{{ category }}"
>
<a
class=
"close"
title=
"Close"
href=
"#"
data-dismiss=
"alert"
>
×
</a>
{{message}}
</div>
<!-- end .alert -->
{% endfor %}
</div>
<!-- end col-md -->
</div>
<!-- end row -->
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
</main>
{% include "footer.html" %}
<!-- JavaScript at the bottom for fast page loading -->
{{ javascript_tag('main_js') | safe }}
{% block js %}{% endblock %}
<!-- end scripts -->
{% endblock %}
</body>
</html>
{% endraw %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment