I’d like to clone an existing Wappler node bootstrap site, into a mobile project (obviously just for the front-end, not the server side.)
The site uses layouts with content pages.
Seems like there are two options:
Create basic wappler mobile project and start copying in pages
or
Clone the existing site from github, remove the server side, and (somehow) convert the project into a mobile project with all the mobile specific settings:
I had good luck with FW7 apps, but given that there is an existing wappler bootstrap site, I’m looking for solid paths that leverage the existing front end work to get started.
Anybody have layouts/content ejs pages in a mobile project?
As the code within the ejs pages is basic HTML and nothing fancy (just remember to remove the base href, and associated template header, as far as I can tell you just want the layout?), then theoretically each could be simply renamed to .html. Would have to copy over the head and body and add App Connect and your Frameworks, or actually thinking as I am typing just create a stock BS# Mobile App, add your Frameworks etc. Then flip between the ejs pages (in a text editor), copy over the html from the ejs to the mobile .html page and paste it in… And on to the next…? Not sure there is any fast way to do this conversion. Could also leave the associated Server Connect Actions and just add the site=“ProjectName” and the url to the Action, then they should all work too, may require some CORS tweaks).
I’m kinda sensing that. There’s not a ton of pages though, so opening in sublime and copying in is doable. Probably best to start with a clean mobile project.
I'd agree. If there are not many pages maybe start the process and build the app for a quick test and go from there? I'm sure you could build a SPA app but haven't personally done this, just the Bootstrap and custom route, but must be able to do it. If anyone can figure that out you can Ken