Git Product home page Git Product logo

Comments (7)

dmvaldman avatar dmvaldman commented on May 18, 2024 1

If you can use jQuery, then you can use Samsara. There's nothing special about it. Maybe you can drag in the CommonJS version you can find in the dist directory instead of the AMD files in the Samsara directory.

from samsara.

trusktr avatar trusktr commented on May 18, 2024 1

Meteor supports NPM and ES6 modules now. Just import Samsara from 'samsarajs' after you've installed it from NPM.

Then use it as described in the Samsara docs.You'll have to get familiar with Tracker.autorun if you want to make things reactive imperatively (using JavaScript, no HTML).

If you want to render Blaze templates in Samsara Surfaces, you can do that: just look at the Blaze.render or Blaze.renderWithData methods, where the parentNode argument will be a Samsara Surace's element that you want to render into.

from samsara.

dmvaldman avatar dmvaldman commented on May 18, 2024

I imagine you're thinking more along the lines of rendering templates from a meteor point of view. I'm sure this is doable, but haven't tried. You'll need to just call setContent on your Samsara surfaces when their data changes.

from samsara.

ozergul avatar ozergul commented on May 18, 2024

If I drag samsara files to my project folder, there is a error. I think I can't use it in meteor. Thanks for reply David.

from samsara.

trusktr avatar trusktr commented on May 18, 2024

@ozergul ^

from samsara.

dmvaldman avatar dmvaldman commented on May 18, 2024

thanks @trusktr!

from samsara.

trusktr avatar trusktr commented on May 18, 2024

@dmvaldman anytime! :}

from samsara.

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.