Skip to content

Commit

Permalink
fix cookiecutter.json file and add jinja2 tag {% raw %} to avoid
Browse files Browse the repository at this point in the history
cookiecutter parser error
  • Loading branch information
drgarcia1986 committed Aug 10, 2015
1 parent 1e0e419 commit 30da87a
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cookiecutter.json
@@ -1,5 +1,5 @@
{
"project_name": "project_name",
"repo_name": "{{ cookiecutter.project_name|replace(' ', '_')|lower }}",
"description": "A short description of the project.",
"description": "A short description of the project."
}
@@ -1,9 +1,16 @@
{% raw %}
<!DOCTYPE html>
<html>
<head>
{% block head %}
<meta charset=utf-8 />
<title>{% block title %}{{cookiecutter.project_name}}{% endblock title %}</title>
<title>
{% block title %}
{% endraw %}
{{cookiecutter.project_name}}
{% raw %}
{% endblock title %}
</title>
{% block style %}
<link href="{{app.cfg.STATIC_PREFIX}}/bootstrap.min.css" rel="stylesheet" media="screen">
{% endblock style %}
Expand Down Expand Up @@ -39,3 +46,4 @@
{% endblock body %}
</body>
</html>
{% endraw %}
@@ -1,3 +1,4 @@
{% raw %}
{% block navbar %}
<div class="navbar navbar-inverse" role="navigation">
<div class="container">
Expand All @@ -9,7 +10,9 @@
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">
{% endraw %}
{{cookiecutter.project_name}}
{% raw %}
</a>

{% if user %}
Expand Down Expand Up @@ -43,3 +46,4 @@
</div>
</div>
{% endblock navbar%}
{% endraw %}
@@ -1,5 +1,9 @@
{% raw %}
{% extends "base.html" %}

{% block content %}
{% endraw %}
<h1>Welcome to {{cookiecutter.project_name}}</h1>
{% raw %}
{% endblock content %}
{% endraw %}
@@ -1,5 +1,7 @@
{% raw %}
{% extends "base.html" %}

{% block content %}
<h2>Hi {{ user.name }}!</h2>
{% endblock content %}
{% endraw %}
@@ -1,9 +1,10 @@
{% raw %}
{% extends "base.html" %}

{% block style %}
{{ super() }}
<link rel="stylesheet" href="{{app.cfg.STATIC_PREFIX}}/sign.css">
{% endblock style%}
{% endblock style %}

{% block navbar %}{% endblock navbar%}

Expand All @@ -13,3 +14,4 @@
{% endblock sign_form %}

{% endblock content%}
{% endraw %}
@@ -1,3 +1,4 @@
{% raw %}
{% extends "sign_base.html" %}

{% block sign_form %}
Expand All @@ -18,3 +19,4 @@ <h2 class="form-sign-in-up-heading">Sign In</h2>
</form>

{% endblock sign_form %}
{% endraw %}
@@ -1,3 +1,4 @@
{% raw %}
{% extends "sign_base.html" %}

{% block sign_form %}
Expand All @@ -22,3 +23,4 @@ <h2 class="form-sign-in-up-heading">Sign Up</h2>
</form>

{% endblock sign_form %}
{% endraw %}

0 comments on commit 30da87a

Please sign in to comment.