I've made a start and created a template and style editing system allowing you to create content for a website. I guess we could start with a layout for www.lfs.net but you could easily create a global style for any other site.
You go to http://wip.lfs.net/ and log in with your regular LFS account.
I recommend not ticking the 'stay logged in box' so that no important cookies are stored. Due to the open editing nature of this site, I cannot guarantee that some joker inserts malicious code. Although I do some safety checks. and malicious code can quickly be traced and removed.
When you are logged in, you will see a style selection and edit button in the bottom right of the screen.
You can select every style anyone has created and view it. You can only edit your own styles, but you can still open any style in the editor to look at the templates. You can also clone someone's style. Then you can edit your cloned version, to make tweaks for example, or suggestions for alternatives.
If there are too many styles in the end and the list becomes too long (which will happen probably), I'll add some filters.
In the editor window you will see a list of page variables to the right. At this time there are just 2 variables that indicate that you're logged in and what your username is. These variables can be used inside your templates.
The remaining part of the screen is dedicated to the editor field where you edit the templates and styles.
The pages are all split up into a global section and a page specific section.
So you can edit the global template (site layout) and style and the current page's template (site content) and style.
For the moment there are just the index page (front page) and the login page. More will follow of course, but I thought I'd introduce you to this first usable site editor now, so you can have a look and get familiar with it all, including how the Mustache templates work.
You can read about using Mustache on the following two pages (or google) :
https://github.com/bobthecow/mustache.php/wiki
https://github.com/bobthecow/mustache.php/wiki/Mustache-Tags
Big features still planned :
-Uploading images. You can already use images in your stylesheets if you host them yourself. But of course you will also have to be able to upload them directly to the site.
-Make the variable list editable.
-Auto preview, so you don't have to keep clicking that button all the time while making changes.
-Other stuff, forgotten for the moment.
I'm sure there are bugs, so if you find any, let me know and I'll have a look.
Also if you have suggestions on how to make it better and more usable, feel free to post.
You go to http://wip.lfs.net/ and log in with your regular LFS account.
I recommend not ticking the 'stay logged in box' so that no important cookies are stored. Due to the open editing nature of this site, I cannot guarantee that some joker inserts malicious code. Although I do some safety checks. and malicious code can quickly be traced and removed.
When you are logged in, you will see a style selection and edit button in the bottom right of the screen.
You can select every style anyone has created and view it. You can only edit your own styles, but you can still open any style in the editor to look at the templates. You can also clone someone's style. Then you can edit your cloned version, to make tweaks for example, or suggestions for alternatives.
If there are too many styles in the end and the list becomes too long (which will happen probably), I'll add some filters.
In the editor window you will see a list of page variables to the right. At this time there are just 2 variables that indicate that you're logged in and what your username is. These variables can be used inside your templates.
The remaining part of the screen is dedicated to the editor field where you edit the templates and styles.
The pages are all split up into a global section and a page specific section.
So you can edit the global template (site layout) and style and the current page's template (site content) and style.
For the moment there are just the index page (front page) and the login page. More will follow of course, but I thought I'd introduce you to this first usable site editor now, so you can have a look and get familiar with it all, including how the Mustache templates work.
You can read about using Mustache on the following two pages (or google) :
https://github.com/bobthecow/mustache.php/wiki
https://github.com/bobthecow/mustache.php/wiki/Mustache-Tags
Big features still planned :
-Uploading images. You can already use images in your stylesheets if you host them yourself. But of course you will also have to be able to upload them directly to the site.
-Make the variable list editable.
-Auto preview, so you don't have to keep clicking that button all the time while making changes.
-Other stuff, forgotten for the moment.
I'm sure there are bugs, so if you find any, let me know and I'll have a look.
Also if you have suggestions on how to make it better and more usable, feel free to post.