Coder Social home page Coder Social logo

Auto summary helper about boats HOT 3 CLOSED

j-d-carmichael avatar j-d-carmichael commented on June 16, 2024
Auto summary helper

from boats.

Comments (3)

j-d-carmichael avatar j-d-carmichael commented on June 16, 2024 1

Simplified with idea from @p-mcgowan just grab the last url segment and expose to the tpl engine

{{ segments.first }}
{{ segments.secondLast }}
{{ segments.last }}
{{ segments[n] }}
{{ verb }}

then you could just stick that in the injector or wherever else

from boats.

j-d-carmichael avatar j-d-carmichael commented on June 16, 2024

src/paths/user/{email}/lists/get.yml

  • get
  • lists
  • {email}
  • user

GET We know the http verb is a kind of action, get, create, update and "update a little bit of"
LISTS is the thing we get
{email} When {} we know we have a variable, so in English "for $var" usually will make sense
user is the harder bit.. specially if there are more

For example this is a harder one

src/paths/user/{email}/action/lists/get.yml

or

src/paths/item/{id}/comment/{id}/like/post.yml

Will be interesting to build a series of potentials on here and see :)

from boats.

j-d-carmichael avatar j-d-carmichael commented on June 16, 2024

https://github.com/j-d-carmichael/boats/blob/main/src/nunjucksHelpers/autoSummary.ts

Human sentence version released

from boats.

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.