9. A method comprising: sending, to a computing device and by client-side code associated with a user-interface component of an electronic device, a request, which causes a dialog to be displayed on the electronic device; receiving, from the computing device, a web page that includes a rendered dialog template corresponding to the dialog, the rendered dialog template comprising one or more place holders for insertion of content; inserting, by the client-side code, content in the place of the one or more place holders; and displaying, by the client-side code associated with the user-interface component of the electronic device, the web page including the dialog, the dialog being displayed based on the rendered dialog template.
9. A method comprising: sending, to a computing device and by client-side code associated with a user-interface component of an electronic device, a request, which causes a dialog to be displayed on the electronic device; receiving, from the computing device, a web page that includes a rendered dialog template corresponding to the dialog, the rendered dialog template comprising one or more place holders for insertion of content; inserting, by the client-side code, content in the place of the one or more place holders; and displaying, by the client-side code associated with the user-interface component of the electronic device, the web page including the dialog, the dialog being displayed based on the rendered dialog template. 10. The method of claim 9 , further comprising selecting the rendered dialog template corresponding to the dialog.