feat: added working rendering with plugins
This commit is contained in:
parent
fbdaf218eb
commit
1ebea8cb73
7 changed files with 139 additions and 81 deletions
|
|
@ -20,10 +20,20 @@ const (
|
|||
<html>
|
||||
<body>
|
||||
<p>
|
||||
Plugin Information:
|
||||
Name: {{ makeshift.plugin.name }}
|
||||
Version: {{ makeshift.plugin.version }}
|
||||
Description: {{ makeshift.plugin.description }}
|
||||
Metadata: {{ makeshift.plugin.metadata }}
|
||||
|
||||
Profile Information:
|
||||
ID: {{ makeshift.profiles.default.id }}
|
||||
Description: {{ makeshift.profiles.default.description }}
|
||||
|
||||
# setup environment variables</br>
|
||||
export MAKESHIFT_HOST={{ makeshift.host }}</br>
|
||||
export MAKESHIFT_PATH={{ makeshift.path }}</br>
|
||||
export MAKESHIFT_SERVER_ROOT={{ makeshift.server.root }}</br>
|
||||
export MAKESHIFT_HOST={{ makeshift.profiles.default.data.host }}</br>
|
||||
export MAKESHIFT_PATH={{ makeshift.profiles.default.data.path }}</br>
|
||||
export MAKESHIFT_SERVER_ROOT={{ makeshift.profiles.default.data.server_root }}</br>
|
||||
</br>
|
||||
# start the service</br>
|
||||
makeshift serve --root $HOME/apps/makeshift/server --init</br>
|
||||
|
|
@ -53,13 +63,9 @@ const (
|
|||
"id": "default",
|
||||
"description": "Makeshift default profile",
|
||||
"data": {
|
||||
"makeshift": {
|
||||
"host": "localhost",
|
||||
"path": "/test",
|
||||
"server": {
|
||||
"root": "/test"
|
||||
}
|
||||
}
|
||||
"host": "localhost",
|
||||
"path": "/test",
|
||||
"server_root": "./test"
|
||||
}
|
||||
}
|
||||
`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue