Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Registering MANY Partials at once #159

Description

@marmz

I come from HandleBars.js, and i often used to store many Partials/Templates in one file (inside <script> tag), then get the ones i need using jQuery.

I would like to do the same thing on PHP, using phpQuery.
So, It could be nice to register Partials passing an Array of Strings when initializing the Engine.
Example:

[
   'partial_bold' => '<b>{{ this.value }}</b>' ,
   'partial_underline' => '<u>{{ this.value }}</u>', 
   'partial_italic' => '<i>{{ this.value }}</i>'
]

so you can call every Partial in your template by its name.
Example:

{{ > partial_underline }}

If someone is interested in this change and maybe can address me to where i should extend the code, i could try adding the feature.
If, instead, the author (Xamin Project) likes the idea and wants to do it by himself it would be great, of course ;)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions