Code Monkey home page Code Monkey logo

Comments (8)

Anahkiasen avatar Anahkiasen commented on July 28, 2024

What is the motivation ?

from flatten.

dmyers avatar dmyers commented on July 28, 2024

Sorry for the delayed response. The reason is I have some plain text files I serve through flatten like a sitemap.xml and robots.txt while it doesn't do any harm I thought about using it with dynamically generating image sizes package I'm working on later and just thought it would be a nice option whether or not Flatten should touch the original content or not.

from flatten.

Anahkiasen avatar Anahkiasen commented on July 28, 2024

Ok sounds good, well if you want to do a PR of that I'm up for it, maybe something regex based that could also be disabled with a false value as pattern so people who don't care don't get the performance impact of the regex check.

from flatten.

dmyers avatar dmyers commented on July 28, 2024

Yeah I think that is a great idea. I haven't had as much time as I hoped to add this, but I still really want the flexibility so I'm hoping to add it soon or if you are bored. 😄

from flatten.

moorer2k avatar moorer2k commented on July 28, 2024

Personally I like the commenting system! I just changed some of the code to store it in a javascript variable in which I assign a timestamp for that cached page so that users can manually refresh, if they wish to update the page! For example: http://loldir.com/vacation/na .

It would actually be nice to be able to manipulate this field more easier! Great package, keep it up!

from flatten.

Anahkiasen avatar Anahkiasen commented on July 28, 2024

Done on develop, can use it through the 1.1.*@dev branch alias. See the timestamp option.

from flatten.

dmyers avatar dmyers commented on July 28, 2024

Thanks!

from flatten.

moorer2k avatar moorer2k commented on July 28, 2024

Awesome, thank you for this!

from flatten.

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.