2017 © Pedro Peláez
 

library cs-content

Web application framework, MVC/templating system for PHP

image

crazedsanity/cs-content

Web application framework, MVC/templating system for PHP

  • Thursday, August 31, 2017
  • by crazedsanity
  • Repository
  • 1 Watchers
  • 1 Stars
  • 808 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 0 Forks
  • 13 Open issues
  • 21 Versions
  • 0 % Grown

The README.md

CS Content System (Templating / MVC Framework)

Build Status, (*1)

Generic MVC-style framework designed to leverage the power of a templating system and PHP includes, all running through a single display script. Allows incredibly fast building of an intelligent website without having to write a script for every page. Separate HTML from code, intelligently build pages using path-based script and template inheritance., (*2)

NOTICE

CS-Content is being broken down into a series of smaller libraries, installable via Composer + Packagist. The list of packages:, (*3)

  • FileSystem: Build Status
  • Session: Build Status
  • Template: Build Status
  • Version: Build Status
  • (more to come)

HOW THE SYSTEM WORKS:::

TEMPLATE FILES:

Automatically loads templates based on the URL, and optionally includes scripts in the includes directory., (*4)

MAIN SECTION:

For the main section, i.e. "/content", it requires a template in a directory of that name beneath /templates, with a file called "index.content.tmpl"... i.e. /templatee/content/index.content.tmpl., (*5)

SUB SECTIONS:

For any subsection to be valid, i.e. "/content/members", it must have an associated template, e.g. "/templates/content/members.content.tmpl". If a subdirectory with an index.content.tmpl file exists, it will be used instead of the file in the sub directory (i.e. "/templates/content/members/index.content.tmpl")., (*6)

SUB SECTION TEMPLATE INHERITANCE:

All pages load the base set of "shared" templates, which are in the form "

.shared.tmpl" in the root of the templates directory. Shared files within each directory, in the form "
.shared.tmpl", will be loaded for ANY subsection.
, (*7)

For any subsection, it inherits a previous section's templates in the following manner (any "content" templates are ignored for inheritance, as they're require for page load)., (*8)

/content                            ---> /templates/content/index.*.tmpl

/content/members                    |--> /templates/content/index.*.tmpl
                                    `--> /templates/content/members.*.tmpl

/content/members/test               |--> /templates/content/index.*.tmpl
                                    |--> /templates/content/members.*.tmpl
                                    |--> /templates/content/members/index.*.tmpl
                                    `--> /templates/content/members/test.*.tmpl

AUTOMATIC INCLUDES:

Much in the same way templates are included, so are scripts, from the /includes directory, though the logic is decidedly simpler: all scripts must have the extension of ".inc", and must have either the section's name as the first part of the filename, or "shared". Shared scripts will be loaded for ALL subsections., (*9)

INCLUDES INHERITANCE:

The template inheritance scheme is as laid-out below. The content system will go as far into the includes directory as it can for the given section, regardless of if any intermediate files are missing., (*10)

It is important to note that the content system will NOT regard a section as valid if there are include scripts but no templates., (*11)

/content                            |--> /includes/shared.inc
                                    `--> /includes/content.inc

/content/members                    |--> /includes/shared.inc
                                    |--> /includes/content.inc
                                    |--> /includes/content/shared.inc
                                    `--> /includes/content/members.inc

/content/members/test               |--> /includes/shared.inc
                                    |--> /includes/content.inc
                                    |--> /includes/content/shared.inc
                                    |--> /includes/content/members.inc
                                    |--> /includes/content/members/shared.inc
                                    `--> /includes/content/members/test.inc

License

Copyright (c) 2013 "crazedsanity" Dan Falconer Dual licensed under the MIT and GPL Licenses., (*12)

The Versions

31/08 2017

dev-master

9999999-dev https://github.com/crazedsanity/cs-content

Web application framework, MVC/templating system for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

templating php mvc dry oaoo

14/09 2016

v2.0.0-beta11

2.0.0.0-beta11 https://github.com/crazedsanity/cs-content

Web application framework, MVC/templating system for PHP

  Sources   Download

MIT

The Requires

 

templating php mvc dry oaoo

14/09 2016

v2.0.0-beta10

2.0.0.0-beta10 https://github.com/crazedsanity/cs-content

Web application framework, MVC/templating system for PHP

  Sources   Download

MIT

The Requires

 

templating php mvc dry oaoo

14/09 2016

v2.0.0-beta9

2.0.0.0-beta9 https://github.com/crazedsanity/cs-content

Web application framework, MVC/templating system for PHP

  Sources   Download

MIT

The Requires

 

templating php mvc dry oaoo

14/09 2016

v2.0.0-beta8

2.0.0.0-beta8 https://github.com/crazedsanity/cs-content

Web application framework, MVC/templating system for PHP

  Sources   Download

MIT

The Requires

 

templating php mvc dry oaoo

14/09 2016

v2.0.0-beta7

2.0.0.0-beta7 https://github.com/crazedsanity/cs-content

Web application framework, MVC/templating system for PHP

  Sources   Download

MIT

The Requires

 

templating php mvc dry oaoo

16/12 2015

v2.0.0-beta6

2.0.0.0-beta6 https://github.com/crazedsanity/cs-content

Web application framework, MVC/templating system for PHP

  Sources   Download

MIT

The Requires

 

templating php mvc dry oaoo

16/12 2015

v2.0.0-beta5

2.0.0.0-beta5 https://github.com/crazedsanity/cs-content

Web application framework, MVC/templating system for PHP

  Sources   Download

MIT

The Requires

 

templating php mvc dry oaoo

21/10 2015

v2.0.0-beta4

2.0.0.0-beta4 https://github.com/crazedsanity/cs-content

Web application framework, MVC/templating system for PHP

  Sources   Download

MIT

The Requires

 

templating php mvc dry oaoo

08/09 2015
18/08 2015
24/12 2014

v1.2.20

1.2.20.0 https://github.com/crazedsanity/cs-content

Web application framework, MVC/templating system for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

templating php mvc dry oaoo

24/12 2014

1.2.19

1.2.19.0 https://github.com/crazedsanity/cs-content

Web application framework, MVC/templating system for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

templating php mvc dry oaoo

24/02 2014

dev-development

dev-development https://github.com/crazedsanity/cs-content

Web application framework, MVC/templating system for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

templating php mvc dry oaoo

24/02 2014

1.2.10

1.2.10.0 https://github.com/crazedsanity/cs-content

Web application framework, MVC/templating system for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

templating php mvc dry oaoo

11/01 2014

1.2.9

1.2.9.0 https://github.com/crazedsanity/cs-content

Web application framework, MVC/templating system for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

templating php mvc dry oaoo

10/01 2014

1.2.8

1.2.8.0 https://github.com/crazedsanity/cs-content

Web application framework, MVC/templating system for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

templating php mvc dry oaoo

09/01 2014

1.2.7

1.2.7.0 https://github.com/crazedsanity/cs-content

Web application framework, MVC/templating system for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

templating php mvc dry oaoo

07/01 2014

1.2.6

1.2.6.0 https://github.com/crazedsanity/cs-content

Web application framework, MVC/templating system for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

templating php mvc dry oaoo

06/01 2014

1.2.5

1.2.5.0 https://github.com/crazedsanity/cs-content

Web application framework, MVC/templating system for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

templating php mvc dry oaoo