Skip to content
This repository has been archived by the owner on Sep 29, 2019. It is now read-only.
/ dja Public archive

Django template engine ported to PHP

License

Notifications You must be signed in to change notification settings

idlesign/dja

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dja

http://github.com/idlesign/dja/

ALPHA stage project. Interfaces might be changed at any moment. Use with care.

What's that

Dja is a bit of Django framework, namely its template engine, ported to PHP.

The primary aim of the project is a full-featured and as close to the original code as possible port of Django's template engine, thus introducing this pragmatic template system to PHP developers.

Yet another goal of dja is to make a land for smooth transitions between frameworks in different programming languages, without a need for template rewrites. And, yes, template designers would be grateful and happy too.

Requirements

  1. PHP 5.3
  2. PHPUnit (to be able to run unit tests)

Documentation

Available online from http://readthedocs.org/docs/dja/en/latest/

Philosophy

Dja is from Python pragmatic world, it won't bother some PHP rules. It is not as if it is an impolite guest - it tries to be respectful whereever it doesn't go in confront with dja's inner dja. It operates upon the necessary and sufficient principle. It is wilful, so you can leave anytime you feel you had enough. And that's just how dja goes.

Beware stranger: dja doesn't give a damn for your fancy patterns urge; dja doesn't like ugly namespace notations; dja spits on setters and getters; dja is worse than the Jabberwocky.

So welcome, or goodby, stranger.

Cheers!

To all the guys from Django team. Without your code there won't be any dja. You are great! Thank you!