Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ookhrimenko authored Jan 17, 2018
1 parent e21a913 commit fa93f82
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,26 @@ moved as a plugin to provide easier support and updates population through diffe

This solution makes possible to deliver new updates and hot fixes without modifying the theme code.

## What is inside?
## What's Inside?

### Better file structure
The organization of a theme is very similar to a modern PHP Frameworks. We totally separated registration of hooks and components, query logic and the templates.
### Better File Structure
The organization of a theme is very similar to modern PHP Frameworks. We totally separated registration of hooks and components, query logic, and the templates.

We tried to keep as much standard WordPress features as possible, so all "views" works in the same Template
Hierarchy as standard templates, just grouped by a content types (with folders).
We tried to keep as much standard WordPress features as possible, so all "views" work in the same Template
Hierarchy as standard templates, just grouped by content types (with folders).

![File structure](https://github.com/justcoded/wordpress-theme-boilerplate/wiki/assets/boilerplate-file-structure.png)

### Template Inheritance

We added modern template inheritance system based on layouts (very similar to Laravel and Yii frameworks).
Some WordPress developers call it a "Theme Wrapper". Markup is handled by one layout file
(or more if needed) instead of being scattered across all template files like typical themes.
(or more if needed) instead of being scattered across all template files as in typical themes.
Stay <abbr title="Don't repeat yourself">DRY</abbr>!

### Security and optimizations
### Security and Optimization

Theme files are nice and clean, but Theme Framework has a lot of hooks to make your WordPress more secure,
clean up and optimize final generated HTML.
Theme files are nice and clean, and Theme Framework has a lot of hooks to make your WordPress more secure and keep the final generated HTML clean and optimized.

### Documentation

Expand Down

0 comments on commit fa93f82

Please sign in to comment.