-
-
Notifications
You must be signed in to change notification settings - Fork 587
Create templates for Silex
⚠️ WARNING: Support for Silex v2 has stopped.
Silex templates are ready to use websites you can edit to change the content and make it your website.
You need to create the templates in Silex, you can not use HTML templates. Silex websites have specific HTML markup for Silex to manage pages, drag/drop zones etc.
What makes a good creative commons template ready to add to Silex templates:
- Little or no CSS - at least do not make editing complex
- Creative Commons license
- Text styles that make customization as easy as possible
- Hosted on Github
- Use the same nomenclature as the official templates:
editable.html
, images inassets/
screenshot.png
, etc. see the official templates repository which holds the templates which appear in the dashboard by default.
You can add templates on your instance only and for your users only. For that, follow the instructions of the page How To Add Silex To Your Node.js Project.
Then you add templates in Silex templates folder and that is all.
Look at the templates of the official repository of templates. They all have 1 folder per template with these files in it: editable.html
, index.html
, screenshot.png
, README.md
and all the files which are generated when publishing the template with Silex.
In your project (the one created from the instructions of How To Add Silex To Your Node.js Project), add the created templates to the folder node_modules/silex-templates/
.
Start Silex as explained in the page How To Add Silex To Your Node.js Project, open http://localhost:6805/
and you should see your templates on the Dashboard.
Now that it works, you need to cleanup all this. You are not supposed to write in the node_modules
folder. If you do, when you update Silex, you will loose all your changes.
Create a folder templates/
in your project (the one created from the instructions of How To Add Silex To Your Node.js Project). Put your templates in this folder. Add this to your package.json
:
{
"build": "cp -r templates/* node_modules/silex-templates/",
This is the documentation for Silex website builder. It is a collaborative effort, click edit and start contributing. Also have a look at these discussions.
WARNING: Support for Silex v2 has stopped. Try Silex v3 alpha, Read about it, Subscribe to the newsletter