Skip to content

Feature Request: Introducing 'Chunks' and 'Snippet' Functionality for Pages #339

Open
@karamble

Description

@karamble

I hope this message finds you well. I have a feature request related to the pages functionality within bisonrelay. Specifically, I would like to propose the inclusion of two new features: 'Chunks' and 'Snippet' functionality.

Here's a brief explanation of these proposed features:

Chunks: These would be static markdown chunks that can be seamlessly included in any static 'index.md' file using a shortcode. For instance, a user could insert a 'chunks' shortcode like the following:

[[$site-header]]
[[$navigation]]

here comes the regular content of the md page
....
....

[[$site-footer]]

This would allow users to modularize their content and make it more organized and efficient, especially with static chunks that get displayed over and over again on various sub-pages.

The primary benefit of introducing 'Chunks' is that it promotes code reusability and streamlines the process of creating and maintaining consistent page structures across the platform.

Snippet Functionality: This feature would enable users to easily insert predefined code snippets into their pages. These snippets could include for example a display of node statistics, the balance on specified addresses, custom code segments that users can insert with a simple shortcode. For instance:

[[snippet-name]]  <- cached snippet
[[!snippet-name]] <- uncached snippet

The 'Snippet' functionality aims to enhance the user experience by simplifying the process of adding frequently used code elements.

By implementing these features, we can significantly improve the flexibility and efficiency of our pages functionality, making it easier for users to create and manage their content.

I believe that these additions would be valuable enhancements to our platform, and I would appreciate it if you could consider them for future development.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions