Use Autoform with a custom object - meteor

There is any way to use autoform to edit/update a plain javascript object (no Mongo.Collection/Server call)?
Thanks!

There is. See the autoform docs here on how you can do it.

Related

Passing objects to html from Blaze Template helpers

I am looking for a way to be able to pass an object from Template.templateName.helpers to the html.
It seems that the syntax: {{objname.property}} does not work in spacebars.
How do I do it ?

Nustache.Mvc - Is it possible to create a custom helper

I use The Nustach.MVC assembly https://www.nuget.org/packages/Nustache.Mvc3/1.13.8.22 so I can share templates betwixt back end and front.
Is there a way to write a custom handlebars helper that I can use in the back end?
Maybe this Project could help you nustache-helpers

Check of Meteor Template has rendered

Is there a way to check if a specific Template has been rendered, other than by using Sessions, i.e. the Template is accessible for other external functions to use?
A good example is that I want to use Blaze.renderWithData, but need to know that the Template is availabel beforehand.
If you want to see if a template has been rendered, put a flag in the onRendered callback. If you don't like Session vars use a reactive var or dict & include the inverse in the onDestroyed. Store that reactive-whatever under your package object's global. As an alternative, if you know where it might be rendered to, you can use Blaze.getView on the element where it should appear and if it returns, you know you have it, e.g. Blaze.getView($('.foo')[0])
Also consider asking yourself why you can't use spacebars or embed the rendering directly in the onRendered callback. Using Blaze.renderWithData is fairly uncommon.

Pretty dump variable/object in Symfony 2.*?

When developing stuff I need to output the state of some instance in order to inspect it.
While using CakePHP I always had a debug() function which does some kind of var_dump inside a <pre> html element, so the content is readable.
Is something similar in Symfony 2.x too?
exit(\Doctrine\Common\Util\Debug::dump($someVar));
use
\Doctrine\Common\Util\Debug::dump($user);
As of today, one of the best ways to debug in Symfony that I know of is the Ladybug Bundle. Its output is similar to xdebug's, but it has some nice features, like a collapsible tree structure for arays or automatically linking to documentation pages (supporting standard PHP, Doctrine and Symfony).
You can find some great examples of its use on the README.
Now there is a new function in Symfony - dump(), have a look at http://symfony.com/blog/new-in-symfony-2-6-vardumper-component

Drupal, Lightbox2, callback function?

is there any callback function for lightbox2 in Drupal ?
I need to trigger some functions when the lightbox content is ready
thanks
Like this?
http://www.erikhedin.com/web-design/drupal-tips/Easy-Ajax-Nodes-Lightbox-Content
Are you using the Lightbox2 module?
http://drupal.org/project/lightbox2
It has a myriad of options to use. It also adds itself as a Views field option when displaying an image.
Like this: How to trigger event on arbitrary function call using jQuery

Resources