vladimirok5959 / golang-fave

CMS written on Go with MySQL, splitted by modules, fully mobile adaptive, Go template variables
https://fave.pro
MIT License
26 stars 4 forks source link

Ask about Template files #4

Closed karfianto closed 5 years ago

karfianto commented 5 years ago

Hi,

I just tried it.

What's the different between templates in host/localhost/template and assets/template

Are all assets included in the compiled binary file?

vladimirok5959 commented 5 years ago

So, you can't use front-end without host template files, CMS will print you 500 error page.

What's the different between templates in host/localhost/template and assets/template

assets/template contains the same, original template files from host/localhost/template. Actually if you just install CMS, then host/localhost/template and assets/template are the same. But assets/template will never be changed by user (by editing files or from control panel).

Are all assets included in the compiled binary file?

Yes, assets/template used for including to binary file.

Why? If you something broke in control panel, in Template section, you can restore any template (or all together) by one button. It's more for users and maybe I will extend Template section by backups.

Screenshot from 2019-09-18 13-38-24

vladimirok5959 commented 5 years ago

Sorry, I will close this issue. Feel free to open any issues/PRs.