title: Call a YUI function from HTML
body: <p>i have the Dial example from the official YUI website and its awesome. I have the function in a JS file and works perfectly but i want to call it inside the html page with some parameters (like the value, min, max, etc), but nothing works.</p>
  
  <p>The dial function is this:</p>
  
  <pre><code>YUI().use('dial', function(Y) {
  
      var dial = new Y.Dial({
          min:-220,
          max:220,
          stepsPerRevolution:100,
          value: 30
      });
      dial.render('#demo');
  
  }
  </code></pre>
  
  <p>Thank you so much!</p>
  
  <p>EDIT: I'm going to write a very very simple C++ code and i think you will understand exactly what i want:</p>
  
  <pre><code>int a = 3;int b = 4;
  example (a, b);
  
  a=2;b=4;
  example (a, b);
  
  void example (a, b){  //this shoud be the dial function in a JS file
      int c = a + b;
      cout &lt;&lt; c; 
  }
  </code></pre>
  
  <p>As you can see, i'm printing C every time i call "example" and specifying the values i want every time i call it. If I call example 8 times, it will print the C variable 8 times. That's what i want with the Dials. I want to call as many times as i need the function that creates the Dial from the HTML page with the parameters i need, and the function will create the Dial with those parameters. I dont know if that's possible, but i need this so thank you for help me! :)</p>