Search code examples
search-enginedartrikulo

Can UI created in Rikulo be indexed by search engines?


UI is created in Dart and the Dart code will be compiled to JavaScript. How to make them indexed by the search engines?


Solution

  • If UI is written in pure Dart, they won't be indexed. However, you can use Rikulo EUL, a markup language, to embed UI in the HTML page. Because EUL can be written as a HTML fragment, they will be indexed by the search engines.

    For example, in the following code snippet, "Rich widgets", which is a label, will be indexed by search engines.

    <div data-layout="type: linear">
       Rich widgets: <div class="Switch" data-value="true"/>
    </div>
    

    For a real example, please refer to the Scroll View example.