With StealJS, you can import this module directly in a template that is autorendered:
import plugin from 'can-stache-ast';
Use require to load can-stache-ast and everything else
needed to create a template that uses can-stache-ast:
var plugin = require("can-stache-ast");
Load the global version of the plugin:
<script src='./node_modules/can-stache-ast/dist/global/can-stache-ast.js'></script>
This plugin is one of many. Check out all of the DoneJS plugins on NPM.