Skip to content
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

Move all HTML in create_page to separate template files #15

Closed
sc0ttj opened this issue Feb 19, 2019 · 1 comment
Closed

Move all HTML in create_page to separate template files #15

sc0ttj opened this issue Feb 19, 2019 · 1 comment
Labels
refactor code cleanup and re-writes

Comments

@sc0ttj
Copy link
Owner

sc0ttj commented Feb 19, 2019

Create

./templates/site_meta.html
./templates/site_header.html
./templates/post_header.html
./templates/post_body.html
./templates/post_prev_next.html
./templates/post_footer.html
./templates/site_footer.html
... etc

Containing stuff like:

site_footer.html:

<div class="footer">
$blog_title
</div>

...then just cat the HTML into vars in the various create_page funcs..

for mustache, see https://github.com/jwerle/mush

@sc0ttj sc0ttj added the refactor code cleanup and re-writes label Feb 20, 2019
@sc0ttj sc0ttj mentioned this issue Mar 2, 2019
@sc0ttj
Copy link
Owner Author

sc0ttj commented May 12, 2019

@sc0ttj sc0ttj closed this as completed May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor code cleanup and re-writes
Projects
None yet
Development

No branches or pull requests

1 participant