muninn
GitHubExtensionWope
  • Introduction
  • Config
    • Basic
    • Selector
    • Array
    • Attribute
    • Type
    • Regex
    • Transform
    • Array Transform
    • Exist
    • Schema
    • Trim
    • Initial
    • Fill
    • HTML
    • Methods
Powered by GitBook
On this page

Was this helpful?

  1. Config

Fill

Sometimes you may want to have a value in your schema that you do not parse but need to have.

HTML
<div class="parent">
  <div class="blue">Blue Text</div>
</div>
Config
{
    "blueText": ".blue",
    "createdAt": {
        "fill": new Date().toUTCString()
    }
}
Output
{
    "blueText": "Blue Text",
    "cretedAt": "Tue, 29 Jun 2021 20:41:49 GMT"
}
PreviousInitialNextHTML

Last updated 2 years ago

Was this helpful?