Git Product home page Git Product logo

Comments (9)

mhkeller avatar mhkeller commented on September 28, 2024

I could see some kind of transformation layer being helpful. It seems like the idea here is to be as javascript-less as possible though. Making it an option, though, could be nice.

from way.js.

megubyte avatar megubyte commented on September 28, 2024

Why not just have a way-filter DOM tag? Surely that would be javascript-less?

from way.js.

gwendall avatar gwendall commented on September 28, 2024

+1, will investigate that. Again, PR are welcome!

On 21 August 2014 22:04, Micheal Harker [email protected] wrote:

Why not just have a way-filter DOM tag? Surely that would be
javascript-less?


Reply to this email directly or view it on GitHub
#21 (comment).

from way.js.

megubyte avatar megubyte commented on September 28, 2024

I have just submitted a pull request, @gwendall - hope to see it merged :)

from way.js.

vincentma avatar vincentma commented on September 28, 2024

I am fine with the 'way-filter' DOM tag. However, the actual 'format' function should be externalized, and let the developer define.

Suppose I have my own format function.

function prependUnderscore(str) {
  if (!str) return '';
  return '_' + str;
}

Then it would look like

way-filter='prependUnderscore'

from way.js.

megubyte avatar megubyte commented on September 28, 2024

I have added the possibility of custom filters to my pull request. My implementation is as such:

function filtername(str) {
     return "string to return";
}

from way.js.

gwendall avatar gwendall commented on September 28, 2024

Right on. Pushed what seems to be a correct implementation. Check it out. https://github.com/gwendall/way.js#filters

from way.js.

gwendall avatar gwendall commented on September 28, 2024

Pull requests welcome for more cool pre-built filters!

https://github.com/gwendall/way.js/blob/master/way.js#L224

from way.js.

gwendall avatar gwendall commented on September 28, 2024

Btw, will rename it to "way-transform" tomm to keep the "way-filter" as an attribute to filter repeats.

Sent from my iPhone

On 21 août 2014, at 23:21, Amec Niv [email protected] wrote:

Closed #21.


Reply to this email directly or view it on GitHub.

from way.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.