I would like to know if, or how to, combine Rikulo UXL templates -- That is, provided it is possible.
Just to keep things simple I took the ScrollViewDemo and LoginDemo from the UXL Overview web page as an experiment. My aim would is to see something like this (which you cannot do, of course) in Dart.
index.dart
<body>
<style> ... </style>
<script src="ScrollViewDemo.dart" type="application/dart" ></script>
<script src="SignInDemo.dart" type="application/dart" ></script>
<script src="packages/browser/dart.js"></script>
</body>
</html>
In Dart you are only permitted one dart script per document.
So what I'm looking for is a way to do as shown above with Rikulo mark-up.
Can we do that?
There are a few options for adding a tree of views into the document. Please refer to addToDocument for details.
For example, you can have two different DIV in the HTML pages:
Then, you can invoke
addToDocument
with the target element you prefer:Then, the other program can add the sign-in view to
#signinView
.