Is there anything in PHP like an intermediary in Ruby?

I was in a project with a friend who leads me with Middleman. We are coding in HAML and SASS, and it is obviously Ruby Dev. I would like to know if there is any equivalent for PHP? I am going to ultimately lead the team, and I'm much more comfortable with PHP than Ruby.

I would like to have a layout file (for example, a Zend layout file) I would like ... to convert all the source files from PHP to static HTML in one command and put these static files in the "build" folder so that we can transfer it to the client.

Does anyone know some interesting things to make this happen? Thanks a bunch!

+5
source share
3 answers

, , www.findbigmail.com, PHP, , Ruby/Rails , PHP . HAML, SCSS , CSS JS minify, oh Compass , PHP PHP HTML ..

, , MiddleManApp (MM) - .

, html-, MM, PHP , POSTed, html-. , , javascript API- PHP .

(doh, html), , MiddleMan , Rails 3.1. . main.css ( sub-scss, _index.scss, _pricing.scss), main-2348jlk23489kdj.css - / CDN.

. , PHP. HTML, . PHP Ruby/Rails, ( -, !)

i18n. MM , , Javascript .

HAML PHP . , , , - . ": php" HAML, .php. , Javascript PHP- "API- " - , .

, ! .

+4

PHP Piecrust.

, Middleman coffeescript, sass .., Piecrust .

http://bolt80.com/piecrust/

+2

PHP HTML- PHP:

PHP HTML-

HTML Php

PHP - HTML ?

You can link something to existing template systems like Twig or use PHP Markdown to more or less mimic what Middleman does and create static HTML pages from your source files.

EDIT: As Hari KT mentioned above, http://www.phrozn.info/en/ does just that.

0
source

All Articles