Code Monkey home page Code Monkey logo

Comments (3)

smalluban avatar smalluban commented on May 15, 2024

Helper define method for html is nothing more than a define() function from the library. You can find explanation in the dependency page:

It uses define function from the library, so its API is similar to described in the Definition section.

And there is a link to definition section. I think it is sufficient, but if you think that it could be documented better feel free to open PR.

from hybrids.

lucaseverett avatar lucaseverett commented on May 15, 2024

Thanks for the response. Yes, I read the documentation for define, but I didn't see anything explaining that there was an automatic conversion from camel case to hyphen.

After spending some time reading the documentation and not being able to understand how it works, I decided to just try it out, and that's when I understood what was happening.

I just wanted to share my feedback in case anyone else got stuck trying to understand how the name resolution works.

from hybrids.

smalluban avatar smalluban commented on May 15, 2024

I will put it in my docs to do list, and write a more explicit sentence about it. However, in define docs section, there is a description for passing a map, and it is explained that keys are translated to dashcase.

Thanks for the feedback :)

Edit: I looked closely and in fact there is no explanation that your tagName is translated, it only says that you can pass Pascal or camelcase.

from hybrids.

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.