-
-
Save ds0nt/20d81b9b48f49368b84c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| for x in $@; do | |
| html=`cat $x` | |
| echo html | grep '\<([A-Z]\S*).*\>' | |
| target="$(dirname $x)/$(basename -s .html $x).js" | |
| (echo "import { element } from 'deku'"; echo 'export default {'; echo -e " render: ({props}) => $html"; echo '}')> $target | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment