Giter Site home page Giter Site logo

Comments (3)

leedo avatar leedo commented on June 24, 2024

Hi there,

If you are implementing this all on the noembed side of things (aka not running an external oEmbed service) you'll probably want to create an HTML template in share/templates/. Then you can use $self->render($vars) in the serialize method. Then you can include any javascript you want in your template.

Here is an example:
render call: https://github.com/leedo/noembed/blob/master/lib/Noembed/Source/Twitter.pm#L82
template: https://github.com/leedo/noembed/blob/master/share/templates/Twitter.html

I hope that helps!

from noembed.

simkimsia avatar simkimsia commented on June 24, 2024

Hi leedo,

I am using PHP for my web application.

So does that mean I need to git clone the noembed files and then host them on my server?

I believe noembed uses Perl?

from noembed.

leedo avatar leedo commented on June 24, 2024

Hi again,

If this is your own application, I would suggest just implementing an oEmbed endpoint in your own application. Then adding noemebd support is as simple as something like the Flickr provider.

See here for more details: http://oembed.com/#section1

You would want to implement the rich type, making sure the html parameter is defined.

from noembed.

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.