User Tools

Site Tools


vmod

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
vmod [2020/08/17 10:51]
A User Not Logged in old revision restored (2020/08/16 18:23)
vmod [2020/08/26 10:51] (current)
2a01:4f8:201:62f5::2 old revision restored (2019/10/18 03:32)
Line 5: Line 5:
 vMod focuses on lightweight and simplicity but also introduces features previously not seen in vQmod. Some of the notorious differences are: vMod focuses on lightweight and simplicity but also introduces features previously not seen in vQmod. Some of the notorious differences are:
  
-  * Simple and high performing code. A little over half the footprint of vQmod (16 kb instead of 26kb).+  * Simplier and high performing code. Almost half the footprint of vQmod (16 kb instead of 26kb).
   * String aliases allowing you to define one value for all occurrences in the file.   * String aliases allowing you to define one value for all occurrences in the file.
   * Multiline matching which is not possible in vQmod.   * Multiline matching which is not possible in vQmod.
Line 23: Line 23:
   <version>1.0</version>   <version>1.0</version>
   <author>acme.com</author>   <author>acme.com</author>
-  <priority>0</priority> 
  
   <alias key="foo" value="bar" />   <alias key="foo" value="bar" />
-   
-  <setting> 
-    <title>Foo</title> 
-    <description>Description of foo.</description> 
-    <key>foo</key> 
-    <function>text()</function> 
-    <default_value>bar</default_value> 
-  </setting> 
-   
-  <install><![CDATA[ 
-  ... 
-  ]]></install> 
-   
-  <uninstall><![CDATA[ 
-  ... 
-  ]]></uninstall> 
-   
-  <new filename="path/for/newfile.php"><![CDATA[ 
-    ... 
-  ]]></new> 
  
   <file path="path/to/" name="file.php,anotherfile.php">   <file path="path/to/" name="file.php,anotherfile.php">
Line 73: Line 52:
   <author>acme.com</author>   <author>acme.com</author>
      
 +  <alias key="{fruit}" value="apples" />
 +
   <file name="path/to/file.php">   <file name="path/to/file.php">
     <operation>     <operation>
Line 79: Line 60:
       ]]></find>       ]]></find>
       <insert position="replace"><![CDATA[       <insert position="replace"><![CDATA[
-        I like green apples.+        I like green {fruit}.
       ]]></insert>       ]]></insert>
     </operation>     </operation>
   </file>   </file>
 </vmod> </vmod>
-</code> 
- 
-===== Examples ===== 
- 
-==== Inline Matching ==== 
- 
-<code xml> 
-    <operation> 
-      <find><![CDATA[tomatoes]]></find> 
-      <insert position="replace"><![CDATA[apples]]></insert> 
-    </operation> 
-</code> 
- 
-==== Multiline Matching ==== 
- 
-<code xml> 
-    <operation> 
-      <find><![CDATA[ 
-        I like green tomatoes. 
-        What do you like? 
-      ]]></find> 
-      <insert position="replace"><![CDATA[ 
-        I like green apples. 
-        Do you have apples? 
-      ]]></insert> 
-    </operation> 
 </code> </code>
  
vmod.txt ยท Last modified: 2020/08/26 10:51 by 2a01:4f8:201:62f5::2