Jekyll template updated to support new PCjs machine property ('connection')
This commit is contained in:
parent
7d298b17f4
commit
9324d8dabe
1 changed files with 2 additions and 1 deletions
|
|
@ -26,6 +26,7 @@ The following optional machine properties will be added to the 'parms' property:
|
|||
'drives' (eg, '[{name:"68Mb Hard Disk",type:4,path:"http://archive.pcjs.org/disks/pc/fixed/68mb/win95.json"}]')
|
||||
'state' (eg, "state.json")
|
||||
'messages' (eg, "fault")
|
||||
'connection' (eg, "serialPort=vt100a.serialPort")
|
||||
|
||||
Finally, all our JavaScript components expect multi-word property names to use camelCase, so we automatically convert
|
||||
any lower-case forms to camelCase, both here and in markout.js and components.xsl, in case we've gotten sloppy in any
|
||||
|
|
@ -97,7 +98,7 @@ of our Markdown or XML documents. Examples: 'automount' becomes 'autoMount', 'a
|
|||
{% else %}
|
||||
{% assign machine_template = machine.template %}
|
||||
{% endunless %}
|
||||
{% capture machine_parms %}{{ site.left_brace }}autoMount:{{ machine_autoMount }}{{ machine_autoPower }}{{ machine_autoStart }}{{ machine_drives }},state:"{{ machine.state }}",messages:"{{ machine.messages }}"{{ site.right_brace }}{% endcapture %}
|
||||
{% capture machine_parms %}{{ site.left_brace }}autoMount:{{ machine_autoMount }}{{ machine_autoPower }}{{ machine_autoStart }}{{ machine_drives }},state:"{{ machine.state }}",messages:"{{ machine.messages }}",connection:"{{ machine.connection }}"{{ site.right_brace }}{% endcapture %}
|
||||
{% if site.pcjs.compiled == true and machine.uncompiled != true %}
|
||||
{% capture machine_script %}<script type="text/javascript" src="{{ site.baseurl }}/versions/{{ machine_app }}/{{ site.pcjs.version }}/{{ machine_file }}.js"></script>{% endcapture %}
|
||||
{% unless machine_scripts contains machine_script %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue