-
Notifications
You must be signed in to change notification settings - Fork 883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pcreate to cookiecutter #2866
Merged
Merged
pcreate to cookiecutter #2866
Changes from 14 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
80b7e89
add deprecation warning in pcreate
stevepiercy a53db7e
fix tests, changing out.startswith to out.count
stevepiercy 8548e29
undo line removal
stevepiercy 6eb58d7
Merge pull request #2780 from stevepiercy/pcreate-to-cookiecutter
stevepiercy 676ae02
move from chameleon to jinja2 for starter scaffold
palindromed 84f8a58
Move to Jinja2 from chameleon in zodb scaffold
palindromed a5c633f
Add name to CONTRIBUTORS.txt
palindromed ecced84
Add missing end of file newline
palindromed 6cb9380
add jinja2 to manifest
palindromed ad1ac11
Merge pull request #2798 from palindromed/move-to-jinja2
stevepiercy e4d6660
update to match tox.ini
mcdonc b7b1846
revert commits for ZODB scaffold changes
stevepiercy 760cf2c
resolve conflict in CONTRIBUTORS.txt
stevepiercy 884bcdc
Merge branch 'master' into pcreate-to-cookiecutter
stevepiercy 4393f8b
capitalize Pylons
stevepiercy 9bbed79
Merge remote-tracking branch 'upstream/pcreate-to-cookiecutter' into …
stevepiercy fd89d18
fix query string
stevepiercy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
pyramid/scaffolds/starter/+package+/templates/mytemplate.jinja2_tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% extends "layout.jinja2" %} | ||
|
||
{% block content%} | ||
<div class="content"> | ||
<h1><span class="font-semi-bold">Pyramid</span> <span class="smaller">Starter scaffold</span></h1> | ||
<p class="lead">Welcome to <span class="font-normal">\{\{project\}\}</span>, an application generated by<br>the <span class="font-normal">Pyramid Web Framework {{pyramid_version}}</span>.</p> | ||
</div> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from pyramid.view import view_config | ||
|
||
|
||
@view_config(route_name='home', renderer='templates/mytemplate.pt') | ||
@view_config(route_name='home', renderer='templates/mytemplate.jinja2') | ||
def my_view(request): | ||
return {'project': '{{project}}'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
include *.txt *.ini *.cfg *.rst | ||
recursive-include {{package}} *.ico *.png *.css *.gif *.jpg *.pt *.txt *.mak *.mako *.js *.html *.xml | ||
recursive-include {{package}} *.ico *.png *.css *.gif *.jpg *.pt *.txt *.mak *.mako *.js *.html *.xml *.jinja2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
#!/bin/bash | ||
tox -e{py27,py33,py34,pypy}-scaffolds | ||
|
||
tox -e{py27,py34,py35,pypy}-scaffolds, |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/Pylons?q=cookiecutter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 4393f8b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you try the url? That wasn't the only change...