Files
2012-02-21 01:15:00 -05:00

1 line
2.2 KiB
JSON

[{"user_id": 41657, "stars": [], "topic_id": 45938, "date_created": 1317324727.0297589, "message": "I have a legacy PHP website that I'd like to upgrade to use modern tools like haml/scss + jammit et al. I'm thinking middleman is perfect as most pages are static with just the occasional PHP snippet in a couple of pages.\n\nI'm thinking that I can have some pages as:\n\nsomepath/somefile.php.haml\n\nand others as\n\nsomepath/anotherfile.html.haml\n\nand deal with a little ugliness to get the php passed through (perhaps from partials?). I'm not adverse to writing a little extra code to ease the way, but would appreciate any hints on where to focus.\n\nI wonder if anyone else has faced this and has some tips? Thanks in advance!", "group_id": 10410, "id": 2243408}, {"user_id": 7586, "stars": [], "topic_id": 45938, "date_created": 1317325800.3769159, "message": "In the past, I've written a custom Haml \"php\" filter so I can create a block which is ignored by Haml and wrapped in <?php tags", "group_id": 10410, "id": 2243535}, {"user_id": 7586, "stars": [], "topic_id": 45938, "date_created": 1317325706.213017, "message": "First, you'll need to tell Middleman to ignore PHP files:", "group_id": 10410, "id": 2243526}, {"user_id": 7586, "stars": [], "topic_id": 45938, "date_created": 1317325763.1666911, "message": "You'll probably want to tell Middleman that index.php is a directory index (instead of index.php):", "group_id": 10410, "id": 2243532}, {"user_id": 7586, "stars": [], "topic_id": 45938, "date_created": 1317325709.564271, "message": "mime_type :php, 'application/x-httpd-php'", "group_id": 10410, "id": 2243527}, {"user_id": 7586, "stars": [], "topic_id": 45938, "date_created": 1317325715.6160569, "message": "in your config.rb", "group_id": 10410, "id": 2243528}, {"user_id": 7586, "stars": [], "topic_id": 45938, "date_created": 1317325769.342648, "message": "set :index_file, \"index.php\"", "group_id": 10410, "id": 2243533}, {"user_id": 41657, "stars": [], "topic_id": 45938, "date_created": 1317327463.146709, "message": "Thanks, plus I saw your message at https://github.com/tdreyno/middleman/issues/125 - sorry for cross posting. I didn't discover this forum until later.", "group_id": 10410, "id": 2243701}]