Skip to content

Conversation

raphaelkieling
Copy link

Implemented Pipeline Operator, i did use #139 and #261 to understand the problem.

You can use | or |>

let data = {
   variable: "MyAwesomeVariable",
   pipelineOne: function(value){
      return value.toLowerCase();
   },
   pipelineTwo: function(value){
      return value + " two";
   }
}
{{ variable | pipelineOne }}
{{ variable |> pipelineOne }}
{{ variable |> pipelineOne  |> pipelineTwo }}

Kieling and others added 3 commits February 5, 2019 20:16
@raphaelkieling
Copy link
Author

Travis had a error with.

util.js:538
  ctor.prototype = Object.create(superCtor.prototype, {
                                          ^
TypeError: Cannot read property 'prototype' of undefined

will I need a configuration or something?

Kieling added 2 commits February 6, 2019 11:04
The default value was returned. But i need the value returned from pipelines
bren-do added a commit to clerkchat/mustache.js that referenced this pull request Apr 1, 2025
bren-do added a commit to clerkchat/mustache.js that referenced this pull request Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant