foxfirefey (
foxfirefey) wrote in
dw_dev_training2010-01-26 01:42 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[site community profile]](https://www.dreamwidth.org/img/comm_staff.png)
Entry tags:
The first step on the road to killing BML
I've recently written a guide on Routing and Template Toolkit, which is the system that's going to be replacing BML. As is, the guide is probably only suitable for people who already know their way around the code fairly well, but it's a start to understanding the system if that's what you're interested in.
If you have questions, ask them here, so we can determine if they have answers that should be added to the guide or need solutions developed.
Learning this is especially relevant if you're doing anything that involves significantly revamping a given page, or creating a new page! It'd be better if it could be translated to this system instead of being done in BML.
If you have questions, ask them here, so we can determine if they have answers that should be added to the guide or need solutions developed.
Learning this is especially relevant if you're doing anything that involves significantly revamping a given page, or creating a new page! It'd be better if it could be translated to this system instead of being done in BML.
no subject
no subject
* Redirects
* Cookies
* Crumbs, what is their deal now?
* Figure out a nohtml filter in TT, since I don't think there is one standard, but we can hook our functions for that in
And other things I'm sure I'll run into the more pages I attempt to translate.
no subject
no subject
- Move the complex perl to DW::Controller::Foo::foo_handler.
- Move the HTML and the simple(*) perl (translated to the TT embedded language) to foo.tt
- Move(**) the strings to foo.tt.text (or foo.tt.text-local).
Did I miss anything?
*: where "simple" is loosely defined as "what can be implemented in the TT embedded language".
**: Moved strings should probably have a |note attached pointing to the old string, to make rho's job easier.
no subject
Also, sidenote, if you leave the BML file in place, it'll barf all over the place.
no subject
no subject
no subject
no subject
no subject
Additionally, there's the reverse of what foxfirefey mentioned: is it possible for pages to be so simple that they need a template but no controller? (I'm thinking static or mostly-static pages.)
no subject
register_static( '/path', 'some.tt', app => 1 );
And then just a single DW::Controller:<whatever> file for "static templates" (or throw it in ::Misc)
no subject
no subject
I was going to point you to the HTML plugin and then I realized that was still escaping and not stripping, so eh.