philmprice / twig-prototyping

Use Twig to create HTML Wireframes
Other
5 stars 1 forks source link

mapping out dot notations to urls? #3

Open davidvandenbor opened 8 years ago

davidvandenbor commented 8 years ago

Hi Phill! It's amazing what you did with this simple prototyping kit! It stands out in its simplicity for dishing out prototypes. I made a modified (and build upon) version of your starterkit. I merged the ZURB Foundation Starterkit with your prototyping setup, added a gulp file to it to take care of Bower package management and scss compiling using gulp-sass (libsass) Think Zurb-Foundation-starterkit but with TWIG instead of Handlebars templating! :-)

I'll put up a repository with this starterkit soon. I'm aiming for the ultimate "bare necessities" starterkit :-)

There's just one thing missing: Would it be possible to map dot notations to urls? If for instance I save a twig file with the name smartphones.brands.samsung.twig, the url automatically would become www.blahblah.com/smartphones/brands/samsung.

I remember doing this in an earlier starterkit i made using the Slim framework. Is it easy to implement this in your starterkit using just plain PHP? That would be Pretty neat :-)

Regards and thanx in advance, David!

philmprice commented 8 years ago

Oh yeah, that should be totally possible. Good suggestion! I'll see if I can make time to make a branch that works that way.

Phil

On Fri, Jul 15, 2016 at 3:02 AM, David van den Bor <notifications@github.com

wrote:

Hi Phill! It's amazing what you did with this simple prototyping kit! It stands out in its simplicity for dishing out prototypes. I made a modified (and build upon) version of your starterkit. I merged the ZURB Foundation Starterkit with your prototyping setup, added a gulp file to it to take care of Bower package management and scss compiling using gulp-sass (libsass) Think Zurb-Foundation-starterkit but with TWIG instead of Handlebars templating! :-)

I'll put up a repository with this starterkit soon. I'm aiming for the ultimate "bare necessities" starterkit :-)

There's just one thing missing: Would it be possible to map dot notations to urls? If for instance I save a twig file with the name smartphones.brands.samsung.twig, the url automatically would become www.blahblah.com/smartphones/brands/samsung http://www.blahblah.com/smartphones/brands/samsung.

I remember doing this in an earlier starterkit i made using the Slim framework. Is it easy to implement this in your starterkit using just plain PHP? That would be Pretty neat :-)

Regards and thanx in advance, David!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/philmprice/twig-prototyping/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AE1RVLhtNl2NI9A0zmMHWJtVFB2n3M_Nks5qV1qagaJpZM4JNQBi .