I am new to meteor and jquery-layout.
I am struggling to see how to make the two work together. I have added the jquery and jquery-layout packages. I believe I need to ask jQuery layout to layout the page at some stage, but when? If I do it in the HTML page, I get the message "/ UI Layout Initialization Error / The center-pane element does not exist. /The center-pane is a required element.". I think this is because meteor hasn't yet loaded any templates. The example is based on a meteor default app. I added an extra template to go in the east pane. And pasted in the jQuery layout script.
So where, when and how should I layout my page?
<head>
<title>Layouts</title>
<script type="text/javascript">
$(document).ready(function () {
$('body').layout({ applyDemoStyles: true });
});
</script>
</head>
<body>
{{> navigation}}
{{> hello}}
</body>
<template name="navigation">
<div class="ui-layout-east">
<p>Navigation stuff here</p>
</div>
</template>
<template name="hello">
<div class="ui-layout-north">
<h1>Hello World!</h1>
{{greeting}}
<input type="button" value="Click" />
</div>
</template>