RapidWeaver and Lasso ProHow to code in Lasso and use RapidWeaver as a framework
Here is my way how I setup a RapidWeaver Site and use it as a framework and continue using Coda for coding in Lasso.
In the beginning I started creating all HTML-pages in RapidWeaver and name them index.lasso, so I could code Lasso directly inside the page. But as the site grows, it gets more difficult to maintain this way and needs more and more control qua coding. RapidWeaver just lacks the bare needs of an IDE. It is, of course, not really meant for hand-coders, like I am.
So, the solution I came up with is this: Lasso-includes. Ah, I hear you think, yes, of course!
Create a basic page in RW, disable it completely and add include statements in all possible code places:
Page Inspector: General
Page Inspector: Sidebar
Page Inspector: Header
Now, every time you create a new page in RW, do this by duplicating this default, disabled page. After duplicating and enabling the RW-page, do not forget to set the folder name for the new page in the Page Inspector before you export the page:
When the RW-page is ready for exporting, export it to the site folder. Inside the newly generated folder for the RW-page, create a new folder called includes and create all the six files inside that folder:
To ease this process, I created a default folder above the site folder, which contains all these six files, with default login-processing code already in place. When I then export a page from RW, I just have to copy this default folder inside the folder of the exported page.
This of course means that you can never publish your site from within RapidWeaver, without uploading all supporting pages and files first via some FTP-program like Transmit... Therefore, the best thing to do, is to always only export pages and use Coda or your other IDE, to upload everything to your server.
The advantage of this setup is that you never need to export such pages from RW again, only when you add/delete pages because then the menu changes, or when you change something in the theme-files inside the theme’s contents:
Secondly, you do not have to have RW open all the time anymore, because Lasso takes care of including your files, not RapidWeaver. Thirdly, you can create a site in Coda and code away as usual!
Oh, one more thing! Very, very, very important!!
In RW’s preferences, switch When Exporting, Delete current folder off!!
Otherwise, your includes folder will be deleted when you need to export the page again, for whatever reason, and all your hours of coding are lost..... make backups, use SVN or GIT, etc.