class_docstr: Abstract subcommand to output applications as some type of file.
  
      
class_docstr_tok: ["Abstract","subcommand","to","output","applications","as","some","type","of","file","."]
docstr_tok: []
code: def filename_from_route(self, route: str, ext: str) -> str:
      """ """
      if route == "/":
          base = "index"
      else:
          base = route[1:]
  
      return f"{base}.{ext}"
  
file_path: bokeh/src/bokeh/command/subcommands/file_output.py
imports: from __future__ import annotations
  import logging
  import argparse
  import sys
  from abc import abstractmethod
  from os.path import splitext
  from ...document import Document
  from ..subcommand import Arg, Args, Argument, Subcommand
  from ..util import build_single_handler_applications, die
label_desc: Use image node_id 3 for calling the FileOutputSubcommand obj's underlying member method code with example usage: obj.filename_from_route(route, ext) and returns: base, str, ext