- Status Closed
- Percent Complete
- Task Type TODO
- Category Backend/Core
-
Assigned To
MadCoder - Operating System All
- Severity Low
- Priority Low
- Reported Version 0.9.8-devel
- Due in Version 0.9.9
-
Due Date
Undecided
- Votes
- Private
FS#601 - Templating backend
Flyspray is a bit of a mish-mash of PHP code and SQL queries mixed in with the HTML. We need to seperate the code from the markup by using a templating system. Lately I've been looking at TinyButStrong, at http://www.tinybutstrong.com/
This task is to be started after we release 0.9.8, before any further features are added.
ID | Project | Summary | Priority | Severity | Assigned To | Progress | |
---|---|---|---|---|---|---|---|
503 | Flyspray | Very Low | Medium | MadCoder | |||
697 | Flyspray | Very Low | Low | Floele |
ID | Project | Summary | Priority | Severity | Assigned To | Progress | |
---|---|---|---|---|---|---|---|
638 | Flyspray | Very Low | Medium |
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
Hm, I don’t know much about TinyButStrong, but why not to use some PEAR - stuff from http://pear.php.net. They have lots of template engines with open architecture. Especially Sigma (http://pear.php.net/package/HTML_Template_Sigma) has an extremely good reputation.
After some discussion on the mailing list, I’ve decided to go with Savant2 (http://phpsavant.com/). It’s pure php, so no learning any special new syntax. People on the ML said that they could follow my test code quite easily, so I’m fairly happy at this point. I may re-evaluate later if I come up against any terrible limitations, but it seems ok so far.
I don’t see the point. PHP is a pretty good template engine all by itself. Why clutter it
better use of includes and <?php tags.
I see the point especially when upgrades are due out. If you have made changes and all the layout is controled through a template then changing it back would be a lot simplier than going through all the php includes. Just my opinion.
Thank you, Tony, for not choosing PEAR. phpBugTracker (http://phpbt.sf.net/) uses PEAR, which seems to be the reason why I’m unable to evaluate phpBT...
By the way, most Drupal (http://www.drupal.org/) themes use the PHPTemplate theme engine, which you might consider comparing with Savant2. I don’t know the differences.
After looking at Savant2 in more depth, I really don’t see why I should use a templating ‘engine’ at all! I templated a few scripts using php includes (as eric said above), and it seems to work fairly well to me. After the release of 0.9.8, I will bring it up on the mailing list again and get some more opinions. In the meantime I will look at the PHPTemplate engine just to get a more rounded view of things.
Update: Pierre has written a custom template class for Flyspray, and has converted 90% of the scripts to use it. He’s done a great job. All that remains is the History tab on the task details page, and that looks painful. I’m not worried if it’s left as-is for a while.
Note so that Pierre doesn’t forget: Give the tpl_double_select function an option to disable the up/down arrows.