mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2026-04-26 16:15:54 +03:00
[PR #206] [MERGED] Add support to load templates from json files #207
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
pull-request
question
question
upstream
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nsedit#207
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/tuxis-ie/nsedit/pull/206
Author: @bartvanhalder
Created: 7/25/2024
Status: ✅ Merged
Merged: 3/11/2025
Merged by: @tuxis-ie
Base:
master← Head:master📝 Commits (2)
a3ba9edAdd a way to load templates from json files8e1d003[.gitignore] ignore json files in templates.d/📊 Changes
3 files changed (+50 additions, -0 deletions)
View changed files
📝
.gitignore(+1 -0)📝
includes/misc.inc.php(+21 -0)➕
templates.d/template.json.example(+28 -0)📄 Description
Our config.inc.php was getting a bit long and unreadable, so i added support for loading templates from .json files.
For existing installs this changes nothing as templates loaded from files are appended to the existing $templates before the "is this user allowed to use this template" check.
If an error is encountered loading a template a message is logged and the template is skipped.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.