I read on a site with url: http://www.asymptomatic.net/blogbreakdown.htm that your template tagging uses a proprietary language. My question is how extensive is the use of proprietry languages in your blog and is your software otherwise written entirely in PHP and only uses some proprietary tagging for the templates and nothing else?
Hello,
SPIP is 100% PHP. The template language is a markup language wich can
manipulates any element without using any php code. It's
fonctionalities can be extended / overwritten by using plugins (there
is no limit to this : you only have to interact with the core api, in
in PHP of course ). Some tags can also be inserted inside your
articles and will be evaluated when this information will be
manipulated by the template.
But for the main part templates are html files, so learning effort is
quite reduced.
When cached, templates are not static pages : they are php files that
will be evaluated again : so you can insert into your templates some
PHP code which will be mixed within the cache.
so template = html + php + tags + filters + loops + conditional loops
+ conditional evaluation + plugins' tags + plugins' filters + plugins'
loops
regards,
.Gilles
----
2006/11/15, Michal Augustyniak @ Videotron <maugustyniak@videotron.ca>:
I read on a site with url: Asymptomatic
that your template tagging uses a proprietary language. My question is
how extensive is the use of proprietry languages in your blog and is
your software otherwise written entirely in PHP and only uses some
proprietary tagging for the templates and nothing else?_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en
Michal Augustyniak @ Videotron wrote:
I read on a site with url: Asymptomatic that your template tagging uses a proprietary language. My question is how extensive is the use of proprietry languages in your blog and is your software otherwise written entirely in PHP and only uses some proprietary tagging for the templates and nothing else?
To complete Gilles answer:
1- only the template language to create the site presentation (any output, like html pages, rss feeds, etc...) is prioritary.
2- the site management is in php/mysql, you do not need anything else to install spip
3- at the end, the template language is compiled by spip in php files that create the site presentation.
The template language is there to help you easily access the data entered by the redactors in the blog system and stored in the db.
Without a template language, you would have to do php and mysql. SPIP template language is another language to learn, but if you do not know anything of php or mysql (and even in that case), it's a lot easier to understand, learn and use.
You can see it as a framework to access you database. The template language is fully extensible as you can:
- use it to access any mysql tables in your database,
- it can also be extended to work with other databases software (posgre, etc.),
- it offers special constructions to call you own php code from the template.
You can also easily (if you know php and mysql) extend the site management part with the plugin system introduced in version 1.9.
I hope this helps.
Pierre