RFC: Theme support for HydePHP Markdown Pages? #1383
Replies: 5 comments 1 reply
-
Alternative syntaxes # UI Components using Markdown Code Blocks
```hyde-component welcome
yaml: data
pros: shorter syntax, unique, has no conflicts
cons: verbose, requires an IDE plugin
```
```component welcome
yaml: data
pros: unique, has no conflicts
cons: verbose, requires an IDE plugin
```
```yaml hyde-component welcome
yaml: data
pros: has built in IDE support, reduces conflicts, and makes it clearer it's a Hyde component
cons: verbose, the usage of `yaml` as the initial key may be confusing, may have conflicts
```
```yaml welcome
yaml: data
pros: short syntax, has built in IDE support,
cons: the usage of `yaml` as the initial key may be confusing, lack of component keyword may also be confusing. highest risk of conflicts
``` At some point though, this almost becomes a new language and it would lose out on the intended user friendliness. A big bonus with the Yaml syntax compared to a Blade component library however is that this can be managed using a visual frontend, as the Yaml data is fully machine readable/writable. |
Beta Was this translation helpful? Give feedback.
-
As per our conversation, I believe there are some pros and cons to this feature, which you have already described yourself really well. One of the problems with themes is that there's no real "end" to creating new ones, and trying to satisfy users, especially when requests start flying in about "can I change X in theme Y". So there are two options: make the feature extensible enough that anyone can create their own theme, and perhaps publish it (after review and approval) to some kind of a central store. If we're at this point, might as well expose some kind theme configuration API. Or the second option would be provide some pre-defined themes that are not as extensible (or not extensible at all), but the feature implementation would be much simpler (I imagine...) But all of that being said, we're entering a real in which you'd be adding a lot of complexity. This complexity may be fine for advanced users, but as you yourself have pointed out, the principal idea behind HydePHP is to be dead simple and "just work" out of the box. Hence why I don't think this should be a central feature, but maybe an extension for advanced users who may need to jump through some extra hoops. I hope what I wrote here makes sense. |
Beta Was this translation helpful? Give feedback.
-
Closing this discussion as resolved, since while this specific implementation is cool, it might not actually solve any problems. Theme support in general can stand on its own as a separate issue. |
Beta Was this translation helpful? Give feedback.
-
Just putting it here that GitHub uses [brackets] for their magic code block features like tasklists. Could be on the way to setting a standad? ```[tasklist]
- Item
``` |
Beta Was this translation helpful? Give feedback.
-
New promising package @blade
<!-- Put my custom Blade code here. -->
@endblade https://ryangjchandler.co.uk/posts/embedding-blade-inside-of-markdown-content |
Beta Was this translation helpful? Give feedback.
-
This proposal is formatted using the proposed new Markdown spec, in the same way a Themed Markdown page would be.
Beta Was this translation helpful? Give feedback.
All reactions